Atlassian_git_cheatsheet Atlassian Git Cheatsheet
2014-03-17
: Acerbis Atlassian Git Cheatsheet atlassian_git_cheatsheet docs ads
Open the PDF directly: View PDF .
Page Count: 2
Git Basics
Undoing Changes
git init
<directory>
git clone <repo>
git config
user.name <name>
git add
<directory>
git commit -m
"<message>"
git status
git log
git diff
git revert
<commit>
git reset <file>
git clean -n
+
Git Branches
Remote Repositories
Rewriting Git History
git commit --amend
git rebase <base>
git reflog
git branch
git checkout -b
<branch>
git merge <branch>
git remote add
<name> <url>
git fetch
<remote> <branch>
git pull <remote>
git push <remote>
<branch>
Git Cheat Sheet
Visit atlassian.com/git for more information, training, and tutorials page 1
+
+
+
++
+
+
git config git diff
git log
git reset
git rebase
git pull
git push
Additional Options +
git config --global
user.name <name>
git config --global
user.email <email>
alias.glog "log --graph
--oneline""git glog""git log --graph --oneline"
git config --global
alias.<alias-name>
<git-command>
git config --system
core.editor
<editor>
git config --global
--edit
git log -<limit>
git log --oneline
git log --stat
git log -p
git log
--author="<pattern>"
git log
--grep="<pattern>"
git log
<since>..<until>
git log -- <file>
git log --graph
--decorate
commits
git diff HEAD
git diff --cached
git reset
overwrites all changes
git reset --hard
git reset <commit>
Deletes all commits after
git reset --hard
<commit>
git rebase -i
<base>
git pull --rebase
<remote>
git push
git push <remote>
--force
git push <remote>
--all
git push <remote>
--tags
Visit atlassian.com/git for more information, training, and tutorials page 2