Shell/Bash: git transfer changes to another branch Example

By

Shell/Bash Example: This is the "git transfer changes to another branch" Example. compiled from many sources on the internet by SimpleTutorials.org

how to move unstaged changes to different branch

git stash
git checkout -b new-branch
git stash pop

git transfer changes to another branch

git stash
git checkout -b new-branch
git stash pop

how to move unstaged changes to different branch

git stash
git checkout correct-branch
git stash pop



* Summary: This "git transfer changes to another branch" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others