Cómo mantener el repository bifurcado sincronizado con el repository original

Github dice: "This branch is 10 commits ahead, 8 commits behind xyz:master" .

¿Cómo lo hago incluso con el maestro?

Ingrese el master en su twig (por say, feature ) y luego resuelva "8 commits behind". Y si combina la feature con el master entonces se resolverá "10 commits ahead".

 # merge 'master' into 'feature' branch (solve '8 commits behind') $ git fetch $ git checkout feature $ git pull origin master # pull latest commits of master $ git push origin HEAD # update remote/feature # merge 'feature' into 'master' branch (solve '10 commits ahead') $ git checkout master # checkout 'master' $ git pull origin master # sync with origin/master $ git pull origin feature # pull latest commits of your branch 'feature' $ git push origin master # push to remote/master 

Combina las dos twigs juntas