[英]'git pull' does not update changes from remote branch
I have setup my local branch to track remote branch. 我已经设置了本地分支以跟踪远程分支。
when I do git pull
, it said 'Already up-to-date'. 当我执行
git pull
,它说“已经是最新的”。
But when I do git log
, the latest checkin is on Dec 21, 2012'. 但是,当我执行
git log
,最新的检入时间是2012年12月21日。
And when I do git log remotes/branch1
(the branch I am trying to track), the latest checkin is on Jan 7, 2013'. 当我执行
git log remotes/branch1
(我要跟踪的分支)时,最新的检入时间是2013年1月7日。
Why I don't get changes check in? 为什么我没有签到更改? How can I fix it?
我该如何解决?
Thank you. 谢谢。
you need to set up tracking. 您需要设置跟踪。 Use
git branch --set-upstream remotes/branch1
. 使用
git branch --set-upstream remotes/branch1
。 Although your remote doesn't look ok. 虽然您的遥控器看起来不正常。 It should be
origin/branch
. 它应该是
origin/branch
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.