mozillazg's Blog
  • Feed
  • About
  • Archives

git 查看某个 commit 的改动

2015-11-03

git Lang en

命令如下:

git show COMMIT

或

git diff COMMIT^!

比如:

git show d34ff657f5
git diff d34ff657f5^!

参考资料

  • http://stackoverflow.com/questions/7663451/view-a-specific-git-commit
  • http://stackoverflow.com/questions/17563726/git-diff-for-one-commit

有任何建议和想法欢迎在下方评论区留言或者加我微信交流


Comments


© 2025 mozillazg · Powered by pelican-bootstrap3, Pelican, Bootstrap · Privacy

Creative Commons License "mozillazg's Blog" by mozillazg is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where indicated otherwise.

Back to top