Skip to content
/ repos Public

python script for managing all my local git repositories

Notifications You must be signed in to change notification settings

tims/repos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Repos

repos.py is a python script for managing my local git repositories.

Config is stored in ~/.repos.json Which looks something like:

{
  "projects": [
    {
      "local": "Documents/repos",
      "provider": "git",
      "remote": "git@github.com:tims/repos.git"
    }
  ]
}

Update all repositories

This just does a git pull on every git repo:

repos.py update

List managed repositories

List all the repositories being managed:

repos.py ls

Add a repository

Just clone it to some dir then change to that directory and:

repos.py add .

Drop a repository

To remove a repository from the repos config, change to it's directory and:

repos.py drop .

The repository is not deleted from disk.

Create missing repositories

Create repositories that are in your .repos.json but not yet cloned locally:

repos.py create

Get status

Run git status on each repo:

repos.py status

About

python script for managing all my local git repositories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages