Git Command For Beginners
Git Command For Beginners
nursnaaz / Git-Commands
forked from joshnh/Git-Commands
Dismiss
Join GitHub today
GitHub is home to over 40 million developers working together to host
and review code, manage projects, and build software together.
Sign up
README.md
Git Commands
A list of my commonly used Git commands
If you are interested in my Git aliases, have a look at my .bash_profile , found here:
https://github.com/joshnh/bash_profile/blob/master/.bash_profile
--
Command Description
Basic Snapshotting
Command Description
git add -A Add all new and changed files to the staging area
Command Description
git branch List branches (the asterisk denotes the current branch)
https://github.com/nursnaaz/Git-Commands 1/2
3/15/2020 GitHub - nursnaaz/Git-Commands: A list of commonly used Git commands
Command Description
git checkout -b [branch name] origin/[branch name] Clone a remote branch and switch to it
git merge [branch name] Merge a branch into the active branch
git merge [source branch] [target branch] Merge a branch into a target branch
Command Description
git push origin [branch name] Push a branch to your remote repository
git pull origin [branch name] Pull changes from remote repository
Command Description
git diff [source branch] [target branch} Preview changes before merging
https://github.com/nursnaaz/Git-Commands 2/2