From the command line, I can create a branch from master (and call it a hotfix/foo) or develop (and call it feature/bar) with uncommitted changes in the checkout.
I can then use SourceTree / git-flow to finish commit and finish the branch.
But I can't create them in SourceTree if the checkout is dirty.
It would be really useful to be able to do so from within the UI (I like the UI and can't remember the command line so easily for git).
I so often forget to create the hotfix branch first, make some changes, test them and then realise I want a hotfix. A solution is to stash, create hotfix restore stash, but it would be REALLY nice to just create the hot fix with the dirty master checkout. And to be able to do that from within the UI.
Any possibility of this?
I'm assuming by "dirty" that you mean you have uncommitted changes. I've never had a problem creating a branch in that state. I do have problems pulling, and sometimes have problems switching branches (both of which make sense to be problems), but if I am trying to branch from the commit that I am working on, no problem.
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs