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

Creating new empty (without parent) branch on GUI

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • None
    • 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

      Developers often want to create empty branches. They can't create it using GUI, because SourceTree can create branch only from working copy parent or specified commit.

      To create empty branch, you have to go to terminal and execute:

       

      git checkout --orphan branchname
      
      git rm -rf .
      

       

      add files

       

      git add .
      
      git commit -m "commit message"
      
      git push -u origin branchname
      

       

      Only after that you may see the new branch on GUI.

      Please, add the feature for creating new empty (without parent) branches on GUI.

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            94634cd2c5e5 Andy
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: