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
精彩评论