Você configurou o upstream desse branch
(Vejo:
git branch -f --track my_local_branch origin / my_remote_branch
# OU (se my_local_branch estiver em check-out):
$ git branch --set-upstream-to my_local_branch origin / my_remote_branch
( git branch -f --tracknão funcionará se o branch estiver em check-out: use o segundo comando git branch --set-upstream-to , ou você obteria " fatal: Cannot force update the current branch.")
Isso significa que sua filial já está configurada com:
branch.my_local_branch.remote origin
branch.my_local_branch.merge my_remote_branch
O Git já possui todas as informações necessárias.
Nesse caso:
# if you weren't already on my_local_branch branch:
git checkout my_local_branch
# then:
git pull
basta.
Se você não tivesse estabelecido aquele relacionamento de branch upstream quando se tratava de enviar seu ' my_local_branch', então um simples git push -u origin my_local_branch:my_remote_branchprocedimento teria sido suficiente para enviar e configurar o branch upstream.
Depois disso, para os puxões / empurrões subsequentes, git pullou git pushseriam, novamente, suficientes.