Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git clone depth

$ git clone --depth 1 https://github.com/dogescript/xxxxxxx.git
$ git remote set-branches origin 'remote_branch_name'
$ git fetch --depth 1 origin remote_branch_name
$ git checkout remote_branch_name
Source by www.jianshu.com #
 
PREVIOUS NEXT
Tagged: #git #clone #depth
ADD COMMENT
Topic
Name
1+4 =