Git - Cheat .Sheet
Git - Cheat .Sheet
Initializing a Repository:
git init
Color: green red purple black Meaning: actual shell commands git commands git command attributes user input
Commit:
git add <file> git commit -m "Commit Message" # Use * for all files # Use -a to check in all changes
Branching:
git checkout -b branchname git checkout master git branch -d branchname git push origin branchname git merge branchname # create new branch # switch back to master # delete branch # push branch # merge branchname into current
Tagging:
git tag -a 1.1 -m "tag description" git tag 1.1 git tag 1.1 9fceb02 git push --tags git tag -d 1.0 git push origin :refs/tags/1.0 # regular tag # lightweight tag # tag specific commit # push tags # delete local tag # delete tag from remote
http://terminally-incoherent.com/reference/git-cheat-sheet
@LukeMaciak