Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

clone a single file in git

You can get that file using wget:

Create a directory:

 mkdir mypycode
Change into that directory:

 cd mypycode
Identify the raw URL

Navigate to your file on github (or your git host)
Click on the Raw tab.
Use wget to download it:

 wget <url in the browser>
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #clone #single #file #git
ADD COMMENT
Topic
Name
1+6 =