git技能——文件比较

版权声明:heibao111728 https://blog.csdn.net/heibao111728/article/details/83892654

单个文件比较

1、比较工作区与暂存区文件(一定要指定目录,或者进入当前目录)
git different file_name (e.g)

2、比较工作区文件与指定版本库文件
git diff <History repository> <file_name>

e.g

猜你喜欢

转载自blog.csdn.net/heibao111728/article/details/83892654
今日推荐