From: Erick Mattos <erick.mattos@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH v2] git checkout -b: unparent the new branch with -o
Date: Sun, 14 Mar 2010 18:58:07 -0300 [thread overview]
Message-ID: <55bacdd31003141458y3dfa3734i664b61e69dd50436@mail.gmail.com> (raw)
In-Reply-To: <55bacdd31003141346t408c276ak507b7c289cf17679@mail.gmail.com>
Resending orphan branch 'cheat sheet' again. Gmail screwed it in
previous email. See this using a fixed font:
Branch_A
|
You realize that you need a new empty branch.
|
Is the work tree clean?
| |
Yes No
| |
git clean -ob Branch_B -------Undo?-------Was the work tree clean before?
| | |
| Yes No
| | |
| | git add .
| | git commit -m temp
| | |
| +------+ git
checkout Branch_A -f
| |
| git merge
--squash Branch_B
Do you want to use anything from the work tree? |
| | git reset
Yes No git branch -D Branch_B
| |
| git clean -df
| |
Change the work tree the way you want it to be.
|
git add .
git commit
|
That is it!
prev parent reply other threads:[~2010-03-14 21:58 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 22:28 [PATCH v2] git checkout -b: unparent the new branch with -o Erick Mattos
2010-03-12 6:53 ` Junio C Hamano
2010-03-12 7:40 ` Bert Wesarg
2010-04-27 6:35 ` David Kågedal
2010-03-12 16:45 ` Erick Mattos
2010-03-13 7:53 ` Junio C Hamano
2010-03-13 9:10 ` Junio C Hamano
2010-03-14 21:57 ` Erick Mattos
2010-03-15 2:56 ` Junio C Hamano
2010-03-16 18:18 ` Erick Mattos
2010-03-13 9:33 ` Jakub Narebski
2010-03-13 9:42 ` Junio C Hamano
2010-03-14 21:57 ` Erick Mattos
2010-03-15 2:06 ` Junio C Hamano
2010-03-16 18:17 ` Erick Mattos
2010-03-14 20:46 ` Erick Mattos
2010-03-14 21:58 ` Erick Mattos [this message]
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=55bacdd31003141458y3dfa3734i664b61e69dd50436@mail.gmail.com \
--to=erick.mattos@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).