有没有一种简单的方法可以知道哪些文件将在下一个“git pull”中更新?
我想知道如果我执行“git pull”,哪些文件将被更新(并且希望会发生更改)...
是
git stash
git fetch
git diff origin/master
git stash apply
答案吗?
i would like to know which files would be updated (and hopefully the changes that would occur) if i'd do a 'git pull'...
is
git stash
git fetch
git diff origin/master
git stash apply
the answer ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请参阅此处。引用:
See here. To quote:
由于
git pull
是git fetch
加上git merge
,因此首先执行fetch
,然后将远程分支与您当前的分支(git diff origin/whatever..
)。Since
git pull
isgit fetch
plusgit merge
, do thefetch
first, and then diff the remote branch against your current branch (git diff origin/whatever..
).什么?是的。
Yes.