In case you don’t know, you can do an interactive rebase and amend any past commit, not only the latest.
If the commits were already pushed to a remote, you can still do it but need to add --force or --force-with-lease to your next git push to make it overwrite the remote branch.
In case you don’t know, you can do an interactive rebase and amend any past commit, not only the latest.
If the commits were already pushed to a remote, you can still do it but need to add
--force
or--force-with-lease
to your nextgit push
to make it overwrite the remote branch.