有时候我们直接拷贝本地的git项目到另一个项目的时候
发现git pull并没有更新代码
这时候可能是拷贝后的项目的分支没有关联到远程的分支了。
因此使用git branch --set-upstream=origin/<branch> <local_branch>
可以人工关联
然后再执行git pull就可以更新代码了。
相关文章:http://www.yiibai.com/git/git_update_operation.html
有时候我们直接拷贝本地的git项目到另一个项目的时候
发现git pull并没有更新代码
这时候可能是拷贝后的项目的分支没有关联到远程的分支了。
因此使用git branch --set-upstream=origin/<branch> <local_branch>
可以人工关联
然后再执行git pull就可以更新代码了。
相关文章:http://www.yiibai.com/git/git_update_operation.html