Git: Merge a Remote branch locally
I've pulled all remote branches via git fetch --all . I can see the branch I'd like to merge via git branch -a as remotes/origin/branchname. Problem is its not accessible. I can't merge or checkout? VonC You can reference those remote tracking branches ~(listed with git branch -r ) with the name of their remote. You need to fetch the remote branch: git fetch origin aRemoteBranch If you want to merge one of those remote branches on your local branch: git checkout master git merge origin/aRemoteBranch Note 1: For a large repo with a long history, you will want to add the --depth=1 option when