Changes in your working directory are not branch-specific. If you change a
file without committing it, you can switch (checkout) branches as much as
you want. It's only when you commit that the changes get connected to a
If you want to immediately stash away local changes for fixing something in
master, then resume to work on NewBranch later on, there's a neat command
called "stash" which is great for this:
(Note: Stashes are also branch-independent.)
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at