Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-441

As a user, I want to force checkout a remote branch and override the local branch, so that I can get a fresh copy

    XMLWordPrintable

Details

    • 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

      When checking out a new branch from a remote, there should be an option to force/override the current local branch. This would allow a fresh copy without pull/rebase.

      Without it, SourceTree results in an error:

      git -c diff.mnemonicprefix=false -c core.quotepath=false checkout -b develop --track origin/develop
      fatal: A branch named 'develop' already exists.
      

      With a force option, the Git command would be:

      git.exe checkout -f  -B develop remotes/origin/develop
      

      Attachments

        Activity

          People

            sstreeting Steve Streeting (Inactive)
            247129b48014 Alexander Hawley
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: