I have a a local, unpushed branch of a git repo. I am blocked from pushing my branch to origin cause I forgot to add in a ticket number in one of my git commit messages, so I can push to our master branch due to a restraint from our ticket integration.
The commit missing the ticket number is 3 commits pass my local branch head.
I've tried purposefully detaching at the commit to use --amend
but it did not work.
I've also tried to cherry-pick
and --amend
but that also did not work.
I've tried to do:
git reset [missing ticket # commit hash]
git commit --amend
and tried:
git cherry-pick [missing ticket # commit hash]
git commit --amend
Neither work.