Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 382
    • Issues 382
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • 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