有没有一种简单的方法可以知道哪些文件将在下一个“git pull”中更新?

发布于 2024-08-22 03:37:07 字数 159 浏览 2 评论 0原文

我想知道如果我执行“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

2024-08-29 03:37:07

请参阅此处。引用:

你可以执行“git fetch origin”,然后
'git log master..origin/master',以及
它会告诉你将会发生什么变化
如果你执行 'git merge 则合并
起源/主人'。

See here. To quote:

you can do a 'git fetch origin', then
a 'git log master..origin/master', and
it'll tell you what changes will be
merged if you do a 'git merge
origin/master'.

微暖i 2024-08-29 03:37:07

由于 git pullgit fetch 加上 git merge,因此首先执行 fetch,然后将远程分支与您当前的分支(git diff origin/whatever..)。

Since git pull is git fetch plus git merge, do the fetch first, and then diff the remote branch against your current branch (git diff origin/whatever..).

贱贱哒 2024-08-29 03:37:07

git 存储 
git 获取
git diff 来源/主
git 存储应用 

答案是什么?

什么?是的。

is

git stash 
git fetch
git diff origin/master
git stash apply 

the answer ?

Yes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文