Skip to content

ReDetection/github-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

github-clone

I store github projects under ~/src/github folder, and instead of issuing a cd command, ls to check if I have one and finally git clone I can just run this line to immediately clone and fall into project folder, no matter where I been in the filesystem.

. github clone https://github.com/ReDetection/github-clone.git

Note the dot and a space before github, they matter! This expands to source to be able to change directory from a basj script.

Features

  • automatic cancellation of .git suffix for the projects
  • on existing cloned projects, it will just cd into and do a git fetch
  • -t {type} (defaults to github). Clone project to other folder E.g. -t work will clone project to ~/src/work/PROJECTNAME
  • --debug will just show where the files go and does nothing.

About

A tiny script to speed up clone and cd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages