Skip to content

sam-phinizy/git-smart-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-smart-clone

A simple git extension that clones a git directory to sub folder based on the git url.

Installation

To install use pipx:

pipx install git-smart-clone

Usage

By default this will clone a git repo into your ~/src directory in the format hostname/owner/repo name. This can be overridden with the environmental variable: GIT_SMART_CLONE_BASE_PATH.

So this command

git smart-clone https://github.com/sam-phinizy/git-smart-clone

would clone this repo to this location on your computer:

~/src/github.com/sam-phinizy/git-smart-clone.

Note: Any flags passed to the command will be passed through to git.

License

MIT LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages