Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: How to create independent branches

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:23

Peter Baumann [off-list ref] writes:
Another question. I'd like to create a totaly independent branch (like
the "todo" branch in git). Is there a more user friendly way than doing

git-checkout -b todo
rm .git/refs/heads/todo
rm .git/index
rm <all_files_in_your_workdir>

... hack hack hack ...
git-commit -a

I looked all over the docs, but can't find anything obvious.
My "todo" branch is not even part of my main git repository.  I
just have two independent repositories (git and todo) locally,
and push into the same public repository.

        
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help