Improve create git branch.

Improve the function to create a git branch. Stash file when the repository is not clean, to be sure to create the branch.