I created a branch and made a commit a couple days ago. I made some minor changes since that commit so I'm just doing git commit --amend
. However, when I push to the remote branch, it fails with tip of your current branch is behind its remote counterpart
. I did run git pull
prior to initiating the commit. I think I can do a git push --force-with-lease
to get it going, but I want to figure out why git push isn't working on its own.
git log $branchname:
commit 79c6414
commit db3812b
Merge: b50a40d 44768b2
commit b50a40d
Merge: 2858711 e581ab6
git log origin/branchname:
commit 73a86aa
commit db3812b
Merge: b50a40d 44768b2
commit b50a40d
Merge: 2858711 e581ab6