Jul 24, 2024
mkdir project
.cd project
to change into the project directory.git init
.git status
git add filename
git commit -m "commit message"
git init
: Initializes a new Git repository.git add
: Stages changes for the next commit.git commit
: Records changes with a message.git status
: Shows the status of working directory and staging area.git log
: Views the commit history.git remote
: Links to a remote repository.git branch branch-name
and then git checkout branch-name
.git merge branch-name
.git fetch
and git merge
commands.