Good news. I have a habbit to switch branches using two commands: git checkout -f second-branch git clean -d -q Now this will work with single command. Thanks. - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html