From: Junio C Hamano <gitster@pobox.com>
To: Martin Fick <mfick@codeaurora.org>
Cc: git@vger.kernel.org
Subject: Re: Checking out orphans with -f
Date: Wed, 18 Jan 2012 14:40:36 -0800 [thread overview]
Message-ID: <7vsjjcljmj.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <201201181207.05967.mfick@codeaurora.org> (Martin Fick's message of "Wed, 18 Jan 2012 12:07:05 -0700")
Martin Fick <mfick@codeaurora.org> writes:
> I am trying to write some scripts which do various things to
> a git repo and I have run into a issue where I think that
> git behavior with respect to orphan branches is potentially
> undesirable. If I type:
>
> git checkout --orphan a
>
> I cannot easily abandon this state
What do you mean by "abandon"?
If you want to remove a branch "a" because you do not need it, you can
check out some other branch and say "git branch -D a", no?
next prev parent reply other threads:[~2012-01-18 22:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 19:07 Checking out orphans with -f Martin Fick
2012-01-18 22:40 ` Junio C Hamano [this message]
2012-01-18 22:45 ` Martin Fick
2012-01-18 22:50 ` Martin Fick
2012-01-18 23:12 ` Junio C Hamano
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=7vsjjcljmj.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mfick@codeaurora.org \
/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).