git checkout -b test master, it creates test branch. However, when I modify something in test branch, the code changes in master too. can anyone explain?
Also they have the same hash values which is very strange
just type git checkout -b test
probably you need to delete your test branch before git branch -d test
didn't work, I didn't type git init, is it ok?
Git commands wouldn't work without .git dir
Didnt work what? Everything is correct on your screen
but the changes in test appears in master too
How did you check that
Now you can make commits and they will be stored in the test branch
Обсуждают сегодня