I am having the hardest time trying to figure out how to edit a git commit message that has already been pushed to GitHub. I could have sworn that in the past I have used this same command to edit already pushed git commits and have no issues what so ever. The problem that I'm having right now is when I run git rebase --interactive <SHA of commit>
I get something that looks like this...
noop
# Rebase 5d8e041..5d8e041 onto 5d8e041 (1 command(s))
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like "squash", but discard this commit's log message
# x, exec = run command (the rest of the line) using shell
# d, drop = remove commit
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
#
# Note that empty commits are commented out
When I run the exact same command but with a git commit that hasn't been pushed up to GitHub yet, everything works perfectly fine. Is there something I'm missing? Like I said before I could have sworn that this at one time worked perfectly fine with pushed and unpushed commits.
Thanks so much for your help I greatly appreciate it.