Git Commands
Git Commands
Basic Snapshotting
Command Description
git add -A Add all new and changed files to the staging
area
git checkout -b [branch name] origin/[branch Clone a remote branch and switch to it
name]
git branch -m [old branch name] [new branch Rename a local branch
name]
git merge [branch name] Merge a branch into the active branch
git merge [source branch] [target branch] Merge a branch into a target branch
git push --set-upstream origin [branch name] Sets the remote upstream to
specific branch name
Additional References
Cloning by generating ssh key in linux or in git bash (Please skip -o option):