Utwórz nową gałąź bez utraty zmian
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.