Answers for "how to commit changes to a branch in git"

2

git commit current changes to existing branch

git stash
git checkout other-branch
git stash pop
Posted by: Guest on February-28-2020
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 "how to commit changes to a branch in git"

Browse Popular Code Answers by Language