Answers for "git create a new branch 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
0

git command create new branch from current and move changes

git switch -c <branch name>
Posted by: Guest on February-23-2022

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language