怎么看如果有变化,在一个文件

代码示例

2
0

检查后的变化文件

The very first line in the output of a pull looks like this:

$ git pull
Updating 37b431a..b2615b4

So to get the diff between before and after pull request, use --> 
$ git diff 37b431a..b2615b4
1
0

显示出改变时间的文件

git log --name-status -2

# Will show you the names of the files that changed for the last two commits.

git log -p -2
# Will show you the changes themselves.

## =================================
## Before you pull,

git fetch
git log --name-status origin/master..
# Will show you what commits you are about to retrieve, along with the names of the files.


.

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................