Pulling in different Git branch -
say create repo , has 1 branch called master. if else forks repo , pushes new branch b, best way me pull in b locally without overwriting local master branch? switch branch b locally , pull in changes? guess if don't explicitly switch branches locally if pull in changes remote branch b overwrite local master branch b. best option here?
you can git fetch origin branchname
. doing git pull origin branchname
can merge changes of both branches. install mergetool kdiff3. can integrate two, follow link
Comments
Post a Comment