commit changes from one branch to another code example
Example 1: how to save updated commits to another branch
git stash
git checkout other-branch
git stash pop
Example 2: update one branch to another
git checkout feature1
git merge develop
git stash
git checkout other-branch
git stash pop
git checkout feature1
git merge develop