I am trying to do some stuff using git.
I had the following commands to fetch and to "clean" my current branch and to make it (my current branch) exactly the same as the remote branch origin/master :
git fetch
git reset --hard origin/master
This is working.
Now I'd like to make my current branch exactly the same as remote branch named myremotebranch. This is, instead of making my current branch the same as origin/master, I'd like to do my current branch the same as myremotebranch (remote branch).
By doing:
git fetch
git reset --hard origin/myremotebranch
Can I accomplish this? (make my current local branch just like remote remotebranch?