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

      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
      

              Assignee:
              Steve Streeting (Inactive)
              Reporter:
              Alexander Hawley
              Votes:
              8 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: