I am learning git commands through tutorials. I have one doubt:
inside a directory, which i want to make git compatible:
git init
git add .
git commit -m "initial commit of full repository"
git remote add origin bitbucket_URL
git push -u origin --all
git checkout -b feature/feature1
git rm README.txt
git add .
<didn't commit>
ls => doesn't show README.txt
git checkout master
ls => it also doesn't show README.txt
but I had deleted README from feature1 branch NOT from master. why README is not showing up in ls of master branch
PS: But when I commit after adding in feature1 branch and then switch to master branch and then do ls, then README file shows up. Could someone please explain what is happening underneath