Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Richard Quadling August 14, 2014

Hi.

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?

Regards,

Richard.

1 answer

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 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
TAGS
AUG Leaders

Atlassian Community Events