Skip to content

Instantly share code, notes, and snippets.

@thoughtchad
Last active November 7, 2016 20:04
Show Gist options
  • Save thoughtchad/d5b4f9e06bf0d19b8865299af9e0ab43 to your computer and use it in GitHub Desktop.
Save thoughtchad/d5b4f9e06bf0d19b8865299af9e0ab43 to your computer and use it in GitHub Desktop.
git clone shallow interact with branches
$ git clone --depth 1 https://github.com/dogescript/dogescript.git
$ git remote set-branches origin 'remote_branch_name'
$ git fetch --depth 1 origin remote_branch_name
$ git checkout remote_branch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment