git checkout -b new-branch
# more files can be added in this step too, wildcards supported
git add /path/to/locally/changed/file
git commit -m "commit message"
git show-branch
git push origin new-branch
Inspired by https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging.
Žiadne komentáre:
Zverejnenie komentára