It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Creating a feature or hotfix on a dirty checkout - possible?

Richard Quadling Aug 14, 2014


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?



1 answer

0 votes
Seth Aug 14, 2014

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.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,941 views 14 18
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you