Skip to content

Instantly share code, notes, and snippets.

@sameeri
Last active April 6, 2016 15:08
Show Gist options
  • Save sameeri/26230570d94a0dec249d to your computer and use it in GitHub Desktop.
Save sameeri/26230570d94a0dec249d to your computer and use it in GitHub Desktop.
Common git commands
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