Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 2

Correct spelling error on commit message?

Solved! Go to Solution.

I committed but had a really bad spelling error.  I did not see any way to correct it at the remote (here) so I "touched" the module  and did another commit after correcting the spelling.  Is there a way to do this without going through another commit?


Thanks for looking!

1 Reply
Pilot Lvl 3
Message 2 of 2

Re: Correct spelling error on commit message?

You can use

git commit --amend

to modify the latest commit. If you had already pushed the 'bad' commit, you would then need to force-push it, which may or may not be what you want.