I am aare, i forgot how to GIT. Accidentally i removed all untracked files from my branch and the only way was to clone repo again. After having completly clean repo with master branch I started to create new branch...
... but as I have mentioned, probably i forgot how to GIT.
I am creating branch by
git checkout HEAD~1 -b personal/$USER/featureX2
and then
git pull origin master
After doing some changes in script on that branch and saving them in eclipse (then u see in git status with red font what should be added to commit), I shouldn't be able to checkout back to master without committing it. But...
I checkout without the problem, even more, the unsaved changes are also on the master branch as I see in a git status.
What I am doing wrong? Or when I should not be able to checkout to another branch without comitting my change?