Git, how do I return to the original host after pulling the branch

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
+5
source share
2 answers

This should work to do what you need:

git checkout origin/master
+9
source

, , git fetch, git merge.

.

Br,

+1

All Articles