Is it possible ? When I click create a new branch icon, its creates a new branch from where current HEAD is pointing to. This is not what I want. Any help ?
Double-click the commit to check it out, then click 'Branch'.
Thanks a lot ! It is kind of two step dance. Is it possible to implement it in more simple fashion ? Click branch icon, dialog displays: first line SHA1 of commit(default to selected with ability to select different, not current HEAD which is not even changebale, second line name of the new branch (you can type there) ? At the end it is just one line in git:
git branch <name> <SHA1>
In practice though, it's still a 2-step process on the command line too:
git branch <name> <SHA> git checkout <name>
The only time it isn't is if you want to create a branch on a SHA and not check it out, but does anyone do that? As opposed to creating a tag where it's common.
I thought the whole point of UI is USABILITY and USER FRIENDLINESS. Everyone has different wotkflows and at the end of the day command line is still an option. But even in your last reply the sequence of events is DIFFERENT from what you need to do in Sourcetree.
sourcetree: checkout commit (and deal with detached HEAD and get presented with dialog box), create branch
git: create branch, possibly checkout
> but does anyone do that?
1. Have staged, modified files which are not ready to get commited (stashing is not an option)
2. Need to create several branches as project maintenance exercise
Also, what the point to have a first line (if you can not change it) in Branch dialog box displaying checked out branch, if I can see it in a views (as bold in list and in a sidebar with checked mark) ???
It's all about usability. Anyway, thanks for your reply.
It looks like you're new here. Sign in or register to get started.