Créer une nouvelle branche sans perdre les modifications
git checkout -b new_branch_name
Thyago Mac
git checkout -b new_branch_name
Creating a new branch ( git checkout -b newbranch ) is always considered "safe": no files will be added, removed, or altered in the work-tree as part of this process, and the index/staging-area is also untouched.