Re: Git documentation on branching.
- Date: Mon, 10 Apr 2017 10:13:36 +0300
- From: Konstantin Khomoutov <kostix+git@xxxxxxxxx>
- Subject: Re: Git documentation on branching.
On Mon, 10 Apr 2017 08:56:30 +0200
Samuel Åslund <samuel@xxxxxxxxxxxx> 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?