From: Konstantin Khomoutov Date: Mon, 10 Apr 2017 07:13:36 GMT Subject: Re: Git documentation on branching. Message-ID: <20170410101336.c93a423e7d3a8594151bebef@domain007.com> In-Reply-To: <3563ee7a-1175-2010-7176-0339cd3e60ee@update.uu.se> On Mon, 10 Apr 2017 08:56:30 +0200 Samuel Åslund wrote: > 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. [...] But neither is uncommitted work saved anywhere when you do `svn switch` in Subversion which is analogous to `git checkout`. While I do know quite many people expect Git to somehow "preserve" their work when switching branches without having them do anything, I wonder what in Subversion workflow makes you think Git should have had the behaviour you expected?