Skip to content

Small wrapper for performing git commands on nested repositories in subdirectories.

Notifications You must be signed in to change notification settings

douglas/sgit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SGIT

sgit is a small wrapper for performing Git commands on nested repositories in subdirectories.

It is a fork of git-subdirs, aiming for tests and for a improved github integration.

Usage

Suppose we have the following directory structure inside the current directory:

.
+-- .git/
+-- bin/
+-- Desktop/
+-- image/
+-- src/
|   |-- test1/
|   |   `-- .git/
|   |-- git-subdirs/
|   |   `-- .git/
|   |-- hgbook/
...

Let's invoke git status on all the Git repositories in the subdirectories:

$ sgit status
#
# => Repository 'current'
#
# On branch master
nothing to commit (working directory clean)
#
# => Repository 'src/test1'
#
# On branch master
nothing to commit (working directory clean)
#
# => Repository 'src/git-subdirs'
#
# On branch master
nothing to commit (working directory clean)

Requirements

  • git
  • pygithub
  • python
  • python-distribute

Installation

From the Python Package Index using pip or easy_install:

$ pip install sgit

Or manually from the GitHub:

$ git clone git://github.com/douglas/sgit.git
$ cd sgit
$ python manage.py install --user

About

Small wrapper for performing git commands on nested repositories in subdirectories.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%