git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git documentation on branching.

From
SÅSamuel Åslund <samuel@update.uu.se>
Date
Apr 10, 2017, 06:56 UTC
Message-ID
<3563ee7a-1175-2010-7176-0339cd3e60ee@update.uu.se>
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

Next: Konstantin Khomoutov
Message 1 of 6 in “Git documentation on branching.”
  1. Samuel ÅslundApr 10, 2017
  2. Konstantin KhomoutovApr 10, 2017
  3. Ævar Arnfjörð BjarmasonApr 10, 2017
  4. Samuel ÅslundApr 10, 2017
  5. Ævar Arnfjörð BjarmasonApr 10, 2017
  6. Konstantin KhomoutovApr 10, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.