-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 07.08.2012 18:19, Jonathan Nieder wrote:
> git-checkout(1) explains:
> 
> If you want to start a disconnected history that records a set of
> paths that is totally different from the one of <start_point>, then
> you should clear the index and the working tree right after
> creating the orphan branch by running "git rm -rf ." from the top
> level of the working tree. Afterwards you will be ready to prepare
> your new files, repopulating the working tree, by copying them from
> elsewhere, extracting a tarball, etc.
> 
> When adding an independent branch like this, generally I prefer to 
> create a new, separate repository and fetch or push its refs with
> "git fetch" or "git push".
> 
> Does that help?  Do you remember which documentation promised 
> otherwise, so it can be clarified for the next person?

Last time when I needed "git checkout --orphan", it created branch
without any files.

In my opinion this command should do what it did before or
alternatively copy all files to new branch, but not automatically "git
add" them.

I cannot try that "git rm" right now, because I already committed
those changes and git rmed everything in next commit.


I don't think that a new repository would be good for this, because my
independ branches are mostly branches, which contain scripts, which
should be easily accessible in the same repository and are highly
related to the repository, which contains them.

- -- 
Mika Suomalainen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Public key: http://mkaysi.github.com/PGP/key.txt
Comment: gpg --keyserver pool.sks-keyservers.net --recv-keys 0x82A46728
Comment: Fingerprint = 24BC 1573 B8EE D666 D10A  AA65 4DB5 3CFE 82A4 6728
Comment: Why do I (clear)sign emails? http://git.io/6FLzWg
Comment: Please remove PGP lines in replies. http://git.io/nvHrDg
Comment: Charset of this message should be UTF-8.
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJQITNGAAoJEE21PP6CpGcoaPAQAIrj+Vko+i4Zm7Q6mDUYWS0B
NmMrMAw4tsk2V5veWH4DQhQJJCC8KSuoIuS0aRlpldGAC43csHdsv5XNYdRcvheA
1wo0IMhDKZ5cJe/Aa68myyuMTnaPHbmC+jJq5JENrKc2sG4uKCndLP9y/IYwNcQH
f9D5VuwCKuELj9x/11YslyHOisKwMBsph59RjYlTyxYzbkpedgCjw3cHRcPArh7h
mDQGt6D11z4qeU+kYv4BnTi4SixJT2N0Sn1csAKk5fbCK/GRg8NNo7nIT+V298Uo
BS4dJqNYk2oV2zDDytApGQdhil7E+roTkgHq1BTY2SYx3zV5XSVwADSE5GB1ndTe
44+lnFSKtHM7QyQbLJOvOTOjPAl+ojg/H5DMXnh2MTAn/r9BLCoPKGFu40wUu3b8
VSt3mjg3UebdQFwLxiurS3J0aDuXT2naQSYLzzv+XCmdqtiJpA+jgl0iQuTybef5
hhfd2ElZI7/muoGQhwk+486mCiuWzN6H0v7ERTqoNNzxk9ORhmMJwHeC3pon7UaE
3DPWSX2wLcg1FqLSBH/Vlppei6oMI2jD7JjKVPpG7BE58yQLrQVx/PqM+B9gaX3L
T4Rz1GW4enaQ5uSvQsFSAIvSrcEfrvJ2nuAm7VnyXVCfAst0S8jyO0q/sBzwRBuI
q4z7r5Yj6DD/7bQUzbsX
=TRLh
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to