Merge remote changes into a branch that is not the current branch

This is doable only if the local branch can be fast-forwarded to the remote head. While in any branch, to fetch the remote branch from origin and update the local head use:

git fetch origin remote_branch:local_branch

Essentially, this is the reverse of how you open a new branch at origin with git push -u origin local_branch:remote_branch.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)