Tudo que você não sabia que queria saber sobre Git
- 1. Tudo que você não sabia
que queria saber sobre Git
Alex Tercete
alex.tercete@vtex.com.br
- 10. Comandos básicos
• git init
• git status
• git add git add .
• git commit git commit -a
git commit --amend
• git log git log -1
• git checkout git checkout -- .
• git diff git diff --word-diff
git diff --staged
- 13. Branches
• git branch git branch –d <name>
• git checkout git checkout –b <name>
git checkout <name>
• git reset git reset HEAD~
git reset --hard HEAD@{1}
• git merge
• git rebase
• git stash git stash list
git stash apply
git stash drop stash@{n}
- 23. Referências
• http://git-scm.com/book
• http://gitready.com/
• http://longair.net/blog/2009/04/16/git-fetch-
and-merge/
• http://tbaggery.com/2008/04/19/a-note-
about-git-commit-messages.html
• http://lostechies.com/keithdahlby/2011/04/0
6/windows-git-tip-hide-carriage-return-in-
diff/
• http://git-scm.com/2011/07/11/reset.html