This should be a FAQ, but I cannot find it googling.
Another person created a branch, committed it and clicked on github using git push origin newbranch
I successfully pulled it using
git pull origin newbranch
Now I want to return to the original version of the original. Nothing that I do leads to files in the original original replacing files in newbranch.
git checkout master
git checkout origin master
git pull
git pull origin HEAD
etc
git pull origin master returns:
* branch master -> FETCH_HEAD
Already up-to-date.
It is not difficult, but I can not understand.
'git branch' returns
* master
and git branch -r 'return
origin / HEAD
origin / experimental
origin / master
source
share