Skip to content

Instantly share code, notes, and snippets.

@skwid138
Last active May 3, 2021 17:33
Show Gist options
  • Save skwid138/1d43e956be29ef43277b95c7ebccda0c to your computer and use it in GitHub Desktop.
Save skwid138/1d43e956be29ef43277b95c7ebccda0c to your computer and use it in GitHub Desktop.

Develoment with multiple remote repos

This can occur when using composer to manage dependencies. From the dependency directory git remote -v will list origin as well as composer. The branch will appear as hash.

If the branch exists on the remote already you can run git fetch --all before setting up the tracking.

I believe both of these acomplish the same thing

  • git checkout [branch] --track [remote]/[branch]
  • git checkout -b [branch] [remote]/[branch]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment