# git gui equivalent to git checkout -b

3 messages from 2011-03-29 to 2011-03-31. Participants: Matt Seitz, Pat Thoyts, Matt Seitz (matseitz).
Thread: https://gitlist.dev/t/26897

## Matt Seitz, 2011-03-29 00:57

Subject: git gui equivalent to git checkout -b
Message-ID: <imrapc$f7u$1@dough.gmane.org>
URL: https://gitlist.dev/e/imrapc%24f7u%241%40dough.gmane.org

```
What is the git gui equivalent to "git checkout -b"?

I have a working tree with changes that I don't want to commit to "master" 
yet.  So I want to create a new branch to contain my changes.

If I go to "Branch->Checkout", I don't see an option to create a new branch.

If I go to "Branch->Create", I see an option to "Checkout After Creation", 
but I want to be sure that is the right choice.

```

## Pat Thoyts, 2011-03-30 12:56

Subject: Re: git gui equivalent to git checkout -b
Message-ID: <87y63wpy0o.fsf@fox.patthoyts.tk>
URL: https://gitlist.dev/e/87y63wpy0o.fsf%40fox.patthoyts.tk
In-Reply-To: <imrapc$f7u$1@dough.gmane.org>

```
"Matt Seitz" <matseitz@cisco.com> writes:

>What is the git gui equivalent to "git checkout -b"?
>
>I have a working tree with changes that I don't want to commit to "master" 
>yet.  So I want to create a new branch to contain my changes.
>
>If I go to "Branch->Checkout", I don't see an option to create a new branch.
>
>If I go to "Branch->Create", I see an option to "Checkout After Creation", 
>but I want to be sure that is the right choice.

Create.

% echo junk >> git-gui.sh
% git status --short --branch
## master
 M git-gui.sh

% git gui # selected Branch, Create, Name=pt/demo, Checkout after Creation
% git status --short --branch
## pt/demo
 M git-gui.sh

If we don't select 'Checkout after Creation' then we don't move to the
new branch. It is created but we remain on master.

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

```

## Matt Seitz (matseitz), 2011-03-31 17:52

Subject: RE: git gui equivalent to git checkout -b
Message-ID: <70952A932255A2489522275A628B97C30FE5BB2C@xmb-sjc-233.amer.cisco.com>
URL: https://gitlist.dev/e/70952A932255A2489522275A628B97C30FE5BB2C%40xmb-sjc-233.amer.cisco.com
In-Reply-To: <87y63wpy0o.fsf@fox.patthoyts.tk>

```
> From: Pat Thoyts [mailto:patthoyts@users.sourceforge.net]
> 
> "Matt Seitz" <matseitz@cisco.com> writes:
> 
> >What is the git gui equivalent to "git checkout -b"?
> >
> >If I go to "Branch->Create", I see an option to "Checkout After
Creation",
> >but I want to be sure that is the right choice.
> 
> Create.

Thanks for your help!

```
