I have a git repo in GitHub. I've been mostly using git gui
to manage it up to now, but now I'm starting to use the shell. What I want to know is, how do I fetch all the branches in a remote and merge them into the respective branches on my local repo automatically? For example, if I have branches master
and development
, and thus origin/master
and origin/development
, I want to fetch origin/master
and merge it into master
and to fetch origin/development
and merge it into development
.
Is there a command that does this?