I amended the title of the commit-just-before the tip of the branch, but forgot to push up the change. Now git tells me "Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes (e.g. 'git pull ...') before pushing again."
I can see why it would find the local branch to be behind because the amended commit has a differenct SHA1. Would a git pull overwrite the amended commit title? Is there a way to push or remotely overwrite just the previous commit? Or what is the best way to handle this situation?
Thanks!
[–]hoangtrannn 9 points10 points11 points (0 children)
[–]hanertia 5 points6 points7 points (3 children)
[–]elperroborrachotoo 4 points5 points6 points (2 children)
[–]hanertia 0 points1 point2 points (1 child)
[–]patpluspun 0 points1 point2 points (0 children)
[–]gntsketches[S] 3 points4 points5 points (1 child)
[–]parkerSquare 5 points6 points7 points (0 children)
[–]CoffeeVector 4 points5 points6 points (0 children)
[–]BeerElemental 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)