生動趣文:那些會用Git的動物
作者:黃利民 整理
從Tumblr上看到的一篇趣文,用Git命令描繪了12張Gif動態圖。不懂Git的也來看看趣圖吧……
從 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
責任編輯:林師授
來源:
伯樂在線