//when on branch 'dev' make branch 'myFeature' off of 'dev' git checkout -b myFeature dev
//the below code can recover your last commited files git checkout -f