Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 366
    • Issues 366
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3442
Closed
Open
Issue created Oct 23, 2019 by Arthur Heidt@ArthurHNL

Commit & Push after amending a commit always results in a failed push

What steps will reproduce the problem?

  1. Create a repo with a remote.
  2. Make some changes.
  3. Commit the changes and push it with commit & push.
  4. 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

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking