常用 git 命令
Posted Andy.gbhu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了常用 git 命令相关的知识,希望对你有一定的参考价值。
git diff : compare working directory and staged file ( by git add)
git diff --stage: compare staged file with file on the server
git diff HEAD: compare working directory and file on the server
git show $commit --stat : show which files included for $commit
git log -p file : show commit history for file
以上是关于常用 git 命令的主要内容,如果未能解决你的问题,请参考以下文章