I have a master branch to where I had commited my last change and then after I ran
git branch test
git checkout test
I deleted file README in the project folder
then I ran
git checkout master
Now there is no README file anymore.
I thought that when you create a new branch it's just like creating a new commit. What am I doing wrong?
testbranch? Because if you didn't your changes would just have been lost when you went back to themasterbranch.checkout testmeans you never changed branch.git checkout test?