Mots clés : gitgit-commitgit-rewrite-historygit-amendgit
97
git commit --amend
git commit --amend -m "New commit message"
git push <remote> <branch> --force # Or git push <remote> <branch> -f
// n is the number of commits up to the last commit you want to be able to edit git rebase -i HEAD~n
89
git commit --amend -m "your new message"
72
git commit --amend
git commit --amend -C HEAD
git reset --hard HEAD^
git rebase -i HEAD~commit_count
git commit --amend git rebase --continue
62
git commit -a --amend -m "My new commit message"