Commit changes to other branch
You can commit changes in different types.

Type 1:

1
git stash
2
git checkout otherBranch
3
git stash pop
Copied!

Type 2:

1
git branch otherBranch
2
git checkout -m otherBranch
Copied!

Type 3:

1
git checkout otherBranch
2
git add *
3
git commit -m
Copied!
​
Copy link
Contents