Update a local repo with Git (Bitbucket)

拈花ヽ惹草 提交于 2019-11-29 22:53:30

问题


I switched recently to a Bitbucket/git system to work on my code, and i'm having some troubles understanding.

Here what I did:

  • Created a repo on Bitbucket, pushed all my code into it, from my computer A.
  • On my computer B, I cloned this code and worked on it. I pushed every modifications on Bitbucket.

But now, it may be very simple, but I don't know how I get back my modifications I push (the latest commits) on my computer A...

I tried forking as written on the doc, but it's creating another repo... I don't get it :(

Thank you for replying!


回答1:


You need to pull your changes in your local repo on computer A. Run the following (assuming your branch name is master)

git pull origin master

For a basic guide to git, check out http://rogerdudler.github.io/git-guide/



来源:https://stackoverflow.com/questions/19365584/update-a-local-repo-with-git-bitbucket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!