Last active
November 7, 2016 20:04
-
-
Save thoughtchad/d5b4f9e06bf0d19b8865299af9e0ab43 to your computer and use it in GitHub Desktop.
git clone shallow interact with branches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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