Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-4964

Support git push --force-with-lease

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • macOS 10.12.6 (16G29)

      Git 2.14.1 (from Homebrew)
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      As described by Atlassian itself, `git push -force` can be dangerous; there is a safer `-force-with-lease` flag, though:

      https://developer.atlassian.com/blog/2015/04/force-with-lease/

      This requires you to have the current state of the branch you're pushing "with force" to fetched or the push will be rejected.

      For some time now I've been pushing with `--force-with-lease` when rebasing my feature branches and I have to do it from the command line.

      I'd like for SourceTree to be able to enforce `--force-with-lease` and disallow `-force` so that I always have to fetch if the data I see on the screen is out of date before pushing.

      I've originally noticed the issue reported for the Windows version of SourceTree: SRCTREEWIN-3045

      Attachments

        Activity

          People

            Unassigned Unassigned
            4c10a4730e87 m_gol
            Votes:
            24 Vote for this issue
            Watchers:
            20 Start watching this issue

            Dates

              Created:
              Updated: