From: Pat Thoyts <patthoyts@users•sourceforge.net>
To: "Matt Seitz" <matseitz@cisco•com>
Cc: git@vger•kernel.org
Subject: Re: git gui equivalent to git checkout -b
Date: Wed, 30 Mar 2011 13:56:39 +0100 [thread overview]
Message-ID: <87y63wpy0o.fsf@fox.patthoyts.tk> (raw)
In-Reply-To: <imrapc$f7u$1@dough.gmane.org> (Matt Seitz's message of "Mon, 28 Mar 2011 17:57:12 -0700")
"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
next prev parent reply other threads:[~2011-03-30 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 0:57 git gui equivalent to git checkout -b Matt Seitz
2011-03-30 12:56 ` Pat Thoyts [this message]
2011-03-31 17:52 ` Matt Seitz (matseitz)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y63wpy0o.fsf@fox.patthoyts.tk \
--to=patthoyts@users$(echo .)sourceforge.net \
--cc=git@vger$(echo .)kernel.org \
--cc=matseitz@cisco$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox