I have mk branch checked out. Now I do git fetch origin to fetch origin/mk branch. This branch was rebased and I have no local changes on it so I simply want to move local mk branch pointer to the fetched remote one, so I do the following:
$ git update-ref -m "Updating mk to remote ..." refs/heads/mk refs/remotes/origin/mk
The operation seems to successful as proved by show-ref:
$ git show-ref mk
a885dad11c37e5c03cc4937766d62e181984c1aa refs/heads/mk
a885dad11c37e5c03cc4937766d62e181984c1aa refs/remotes/origin/mk
However, the commit a885dad wasn't checked out to working directory. Why? Can it be checkout automatically?