我在Github上有一个项目,但我正努力将所做的更改从其中转移到我的本地计算机上。我最近使用Fortrabbit部署了一个应用程序,其中涉及创建一个新的远程存储库以将所有文件推送到-现在(我是菜鸟)我正在努力恢复将更改推入并推送到的过程origin
。
如果我跑步 git status
On branch master
Your branch is up-to-date with 'fortrabbit/master'.
nothing to commit, working directory clean
如果我运行git fetch origin
我没有任何错误,只需返回命令行即可。
如果我git status
再次跑步,我仍然会
On branch master
Your branch is up-to-date with 'fortrabbit/master'.
nothing to commit, working directory clean
我想这样说 Your branch is up-to-date with 'origin/master'.
git remote -v
给我两个仓库(我想?)
fortrabbit [email protected]:app.git (fetch)
fortrabbit [email protected]:app.git (push)
origin https://github.com/djave/app.git (fetch)
origin https://github.com/djave/app.git (push)
我只需要git change repo origin
什么?如何告诉git我想回到原点同步?
您应该能够修复该问题,git branch --set-upstream master origin/master
该问题基本上是说您当前的本地分支应该与原始主机分支相对应。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句