Git: View modify a file's history

  • Found commit id submission
git log -- filename   # 注意 -- 后面有个空格
# 或者
git log --pretty=oneline filename
  • Will commit id previous step placed below show back
  • View README.md change log
git show 999e31080f96c29d84e11a82e87bfa175976fe0e README.md

Guess you like

Origin www.cnblogs.com/shiwanghualuo/p/12112931.html