Git: Get changes from another branch

 Git: Get changes from another branch 


Suppose you are working branchA and somebody merged changes to main branch. You want pull latest changes from main to branchA.

option 1

git checkout main

git pull

git checkout branchA

git merge main


option 2

git rebase main


option 3

git pull origin main



No comments:

Post a Comment