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 
branch.

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: 
http://book.git-scm.com/4_stashing.html

(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 git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to