Answers for "create new branch git with current changes"

3

create branch with local changes

# Update 2020 / Git 2.23
git switch -c <new-branch>

# Before Update 2020 / Git 2.23
git checkout -b new_branch_name
Posted by: Guest on July-20-2021
1

git how to commit changes to a new branch

git checkout -b your-new-branch
git add <files>
git commit -m <message>
Posted by: Guest on July-24-2021

Code answers related to "create new branch git with current changes"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language