Bookmarks
IT
Programming
How to change last commit message if pushed by mistake
«
Remove last commit from repository
How to push a new local branch to a remote Git repository
»
How to change last commit message if pushed by mistake
git reset --soft HEAD^
or
git commit --amend
git commit -m "New message"
git push -f
«
Remove last commit from repository
How to push a new local branch to a remote Git repository
»