I'm new to git, below is my step, and want to know if I switch back to master why I see same thing modified on browser?
cd ../project location
git init
git add *
git commit -m 'without style'
git branch 'style-a'
git checkout 'style-a'
git show-branch -a
output
! [master] without style
* [style-a] without style
--
+* [master] without style
... after I modified code inside file
and
git add *
then
git checkout master
why still get same thing on browser? do I miss something?
does use switch means I can switch to different branch or master to get each group updated code?
UPDATE
git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: ...
more new file