开发者

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

开发者 https://www.devze.com 2023-02-22 11:21 出处:网络
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 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

精彩评论

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