I checked out someone else's branch and tracking it.
git checkout --track origin/foo
However, even though I checked out a different branch (not the master
branch), why is HEAD
still pointing to master
?
When I type git branch -a
, I get this. So I can't do things like git reset HEAD^ --hard
master
* foo
remotes/origin/HEAD -> origin/master
remotes/origin/foo
I basically want to check out someone else's branch, and work on it. Also, commit and push into his branch.