从 Tumblr 上看到的一篇趣文,用 Git 命令描绘了 12 张 Gif 动态图,不懂Git的也来看看趣图吧……
如下:
- git commit -am ‘added debug log’
- git commit -am ‘more debug logging’
- git commit -am ‘even more debug logging’
- git commit -am ‘logs’
- git commit -am ‘lkjasfd’
- git commit -a -m ‘stuffs’
- git push
- git revert HEAD
- git checkout master
- config/unicorn.rb: needs merge
- error: you need to resolve your current index first
- git init
- echo ‘*’ > .gitignore
- git checkout -b refactor
- git log .
- ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d ctrl + d
- git pull
- CONFLICT (content): Merge conflict in pants.rb
- Automatic merge failed; fix conflicts and then commit the result.
- git reset —hard
- git push origin bugfix
- git checkout master
- git merge refactor
- git push origin master
英文原文:Git Animals