终端中git pull之后怎么显示详细文件变更
世界只因有你
世界只因有你 2017-05-02 09:29:36
0
2
1306

之前每次pull之后都是可以显示变更的文件路径
现在只显示如下信息
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
求问如何设置
终端中pull之后显示详细文件变更

世界只因有你
世界只因有你

reply all(2)
漂亮男人

git pull 命令可以解释为 git fetch + git merge 两步的合并体,其实在你执行 git pull You can see the general information of the merged file.

You can use git log -p -2 to view the last two submitted records. For more details, please refer to the git official website books.

https://git-scm.com/book/zh/v2/Git-%E5%9F%BA%E7%A1%80-%E6%9F%A5%E7%9C%8B%E6%8F%90 %E4%BA%A4%E5%8E%86%E5%8F%B2

If you want to compare the differences of each file submitted twice in more detail, you can use the git diff command

git diff  查看尚未暂存的文件更新了哪些部分
git diff filename  查看尚未暂存的某个文件更新了哪些
git diff –cached  查看已经暂存起来的文件和上次提交的版本之间的差异
git diff –cached filename  查看已经暂存起来的某个文件和上次提交的版本之间的差异
git diff ffd98b291e0caa6c33575c1ef465eae661ce40c9 b8e7b00c02b95b320f14b625663fdecf2d63e74c  查看某两个版本之间的差异
git diff ffd98b291e0caa6c33575c1ef465eae661ce40c9:filename b8e7b00c02b95b320f14b625663fdecf2d63e74c:filename  查看某两个版本的某个文件之间的差异
漂亮男人

Git diff compares the differences between the files in the tracking list and the files in the file system. If you are just starting to use it, use GIT GUI. Just like tortoiseSVN, those files will be changed like this . You can use git+coding to make it more obvious. Whichever line has been modified can be directly displayed.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!