git link branch to remote code example Example: git link local branch to remote branch git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'