Skip to content

sweth/github-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

github-clone

Written as an exercise to make me start using github

clones github-style repositories into directories named by user and repo, e.g.

/home/bob/projects$ github-clone https://github.com/sweth/github-clone.git

puts repo into

/home/bob/projects/sweth/github-clone

If current dir matches github username from URL, then just creates repo name, e.g.

/home/bob/projects/sweth$ github-clone https://github.com/sweth/github-clone.git

ALSO puts repo into

/home/bob/projects/sweth/github-clone

rather than

/home/bob/projects/sweth/sweth/github-clone

TODO: Option to use 3-dir structure where PROTO://(STUFF.)*SITE.(SUFFIX)/PATH/TO/REPO clones into SITE/TO/REPO rather than TO/REPO. Easy to do if I don't care about multi-level suffixes like .co.uk...

About

Mirror dir structure when cloning (eg from Github)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages