Last active
April 6, 2016 15:08
-
-
Save sameeri/26230570d94a0dec249d to your computer and use it in GitHub Desktop.
Common git commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch origin | |
git pull origin <branch-name> | |
git checkout <branch-name> | |
git checkout -b <branch-name> | |
git add -a | |
git add -A | |
git commit -m "message" | |
git commit | |
# Delete local branch | |
git branch -D <branch-name> | |
# Delete remote branch | |
git push origin :<branch-name> | |
git config --global user.name "sameeri" | |
git config --global user.email "[email protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment