I am using one example here:
git checkout -b b1
Create a new branch b1, made some changes, such as update file, create a new file, delete a file, etc.
git checkout master
and it was succeed!!Question 1: how come I can checkout to master without saving changes on branch b1?
And when I run
git status
on master, actually I am able to see those changes. Why... Is a branch should be sperate with other branches?
Thanks for pointing out if I were wrong.