开发者

New to Git Hub I have code on my local system and I want to get the latest code there committed by other team member how I could do that

I need a command to update the latest code from the Master repository. Like SVN, we do an update and it will give you latest code.

I am trying to use

sudo git pull origin master

but it says already up to date. I have tried to d开发者_Python百科o

git reset --hard HEAD
sudo git pull origin master

as well but it is also not working.


Try to check if you are on the right branch (master):

git branch

It should look like this:

* master

If it isn't, type:

git checkout master

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜