Re: git checkout -b following git reset --hard pitfall

2012-09-09 Thread Andreas Schwab
"Maris, Rob" writes: > Normally, when there are modifications in the working tree not yet added > resp. committed, git will refuse to change to another branch. Only if switching the branch requires touching the modified files. > Actually, the modified > status of git related to both branches af

git checkout -b following git reset --hard pitfall

2012-09-09 Thread Maris, Rob
Normally, when there are modifications in the working tree not yet added resp. committed, git will refuse to change to another branch. However, when I create a new branch on the fly, using git checkout -b , there is no complaint appearing. After doing so, I executed a git reset --hard in once