Re: Checking out orphans with -f
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 18, 2012, 22:40 UTC
- Message-ID
- <7vsjjcljmj.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <201201181207.05967.mfick@codeaurora.org>
Martin Fick <mfick@codeaurora.org> writes:
Show 8 quoted lines
> 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?