Git documentation on branching.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.

I just started playing around with branching in git.
I have been using it more or less as Subversion until now.

One feature with "git branch xyz" and "git checkout xyz" that is rather obvious if you know them but bit me a little since I did not, is that uncommitted work in progress is not affected or saved when switching between branches. Thus I cleaned up the directory when working with the branch and now I'm trying to find a stash where I hopefully have a copy of those files.

Would it be possible to add something in the documentation to warn others that uncommitted work is not saved or affected by branching? The first two hits on my google search was very informative about branching but I did not see that specific nugget of information (I might have been careless reading, but if I did not see it others will probably also miss it).

Git - git-branch Documentation
https://git-scm.com/docs/git-branch

Git - Branches in a Nutshell
https://git-scm.com/book/.../Git-Branching-Branches-in-a-Nutsh...

This is my first try to contribute to the Git community, I hope it will be useful to somebody.

Regards,
//Samuel



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]