Uploaded image for project: 'SourceTree For Mac'
  1. SourceTree For Mac
  2. SRCTREE-1156

Force push option, only displayed via opt-in in Preferences

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None
    • Last commented by user?:
      true

      Description

      See comments by Timothy Robb here:
      https://answers.atlassian.com/questions/54469/how-do-i-perform-a-forced-push-push-f-from-sourcetree?page=1#comment-75151

      Upshot is that for the minority of people that do use a workflow which requires force pushing, not supporting it is an issue. However, we don't want to offer it lightly, because it could be abused by people who don't understand the impact fully.

      Proposed approach:

      1. Option in Preferences to 'Allow force push'. Only when this option is enabled should the force push checkbox appear on the Push dialog
      2. Using the force push option on the push dialog should still show a warning (with a 'Don't tell me again' checkbox)
      3. The 'force' option should never be remembered in the push dialog

        Attachments

          Issue Links

            Activity

            Hide
            sam14 Sam Stenvall added a comment -

            Will this option be available for Git repositories too? The force option is used to update single-commit pull requests on Github so it would be very useful.

            Show
            sam14 Sam Stenvall added a comment - Will this option be available for Git repositories too? The force option is used to update single-commit pull requests on Github so it would be very useful.
            Hide
            richard.lalancette Richard Lalancette added a comment -

            This missing feature has been bugging me for a while now.
            I use rebase + force push frequently. I need to go do my pushes on the terminal instead, which is getting irritating.

            Show
            richard.lalancette Richard Lalancette added a comment - This missing feature has been bugging me for a while now. I use rebase + force push frequently. I need to go do my pushes on the terminal instead, which is getting irritating.
            Hide
            ksenior Kieran Senior [Atlassian] added a comment -

            Richard Lalancette Sorry, I'm not sure if I'm understanding you. Force push is currently available in SourceTree for Mac from the push sheet as of version 1.7.0 provided you enable the option in your SourceTree preferences.

            Cheers

            Show
            ksenior Kieran Senior [Atlassian] added a comment - Richard Lalancette Sorry, I'm not sure if I'm understanding you. Force push is currently available in SourceTree for Mac from the push sheet as of version 1.7.0 provided you enable the option in your SourceTree preferences. Cheers
            Hide
            staneck Benjamin Staneck added a comment -

            When will this be available in the Windows version?

            Show
            staneck Benjamin Staneck added a comment - When will this be available in the Windows version?
            Hide
            ksenior Kieran Senior [Atlassian] added a comment -

            Hey Benjamin,

            That issue is tracked here if you want to add yourself as a watcher and vote on it: SRCTREEWIN-338

            Cheers

            Show
            ksenior Kieran Senior [Atlassian] added a comment - Hey Benjamin, That issue is tracked here if you want to add yourself as a watcher and vote on it: SRCTREEWIN-338 Cheers

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  1 year, 22 weeks, 3 days ago