git - Pushed branch commits not showing on remote origin -


  1. i cloned remote repo, git clone url machine a
  2. i created branch: git checkout -b my-new-branch
  3. i made several commits branch
  4. i push server, git push origin my-new-branch
  5. i clone remote repo machine b
  6. i git-fetch, git-fetch --all , several other tricks until branch shows up.
  7. i switch branch, git checkout my-branch, git log, , none of commits appear, though git branch shows i'm on my-new-branch

what's going on? how can diagnose issue? version mismatch issue?

(thanks debian have old version of git: git version 1.7.10.4)

in machine b, run git branch -vv make sure local my-branch tracking remote my-new-branch

if output show [origin/master] both local branches (master , my-branch), my-branch tracking origin/master instead of origin/my-new-branch

so fix can remove local my-branch running

git branch -d my-branch 

then create new local my-branch track origin/my-new-branch

git checkout -b my-branch origin/my-new-branch 

note: above command creates local branch , check out together.


Comments