Commit & Push after amending a commit always results in a failed push
What steps will reproduce the problem?
- Create a repo with a remote.
- Make some changes.
- Commit the changes and push it with commit & push.
- Realize you made a mistake and amend your commit with commit & push.
What is the expected output? What do you see instead?
I expect ToirtoiseGit to use git push --force-with-lease
to push the amended commit. Instead, it just executes git push
which results in the remote rejecting the amended commit.
What version of TortoiseGit and Git are you using? On what operating system?
TortoiseGit 2.8.0.0
git version 2.23.0.windows.1
Windows 10 Pro Version 1903 Build 18362.418