Skip to content

organize git repositories automatically based on their `remote.origin`

License

Notifications You must be signed in to change notification settings

khimaros/git-organize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GIT ORGANIZE

automatically organize git repositories based on their remote.origin

overview

NOTE: git-organize expects the git remote to be named origin.

git-organize takes a flat directory structure like this:

git-organize/
smart-auto-move/
whisper-large/
stable-diffusion-v1-5/

and turns it into this:

github.com/
    khimaros/
        git-organize/
        smart-auto-move/

huggingface.co/
    openai/
        whisper-large/
    runwayml/
        stable-diffusion-v1-5/

usage

clone this repository and add it to your path

if you'd like the repositories to be moved somewhere other than ~/src, set $GIT_ORGANIZE_BASE to another path.

run the following in a directory containing at least one subdirectory which is a git repository:

$ git organize .

there is also another script git-cl which clones to the correct directory.

$ git cl https://github.com/khimaros/git-organize

About

organize git repositories automatically based on their `remote.origin`

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages