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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -