Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

pkrog/scan-repos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCAN-REPOS

scan-repos is a small script utility that prints a brief summary of the state of your Git repositories.

You can run scan-repos using a specified Git directory, or specify a directory that contains Git directories. See RUNNING section for more details.

INSTALLING

First, you should run the tests in order to make sure all is fine:

make test

You can use scan-repos script as is, or install it in PATH using make.

By default, scan-repos is installed inside /usr/local/bin. If this is what you want, just run:

make install

If you want to install it in a different place:

PREFIX=/usr/bin make install

To uninstall it:

make uninstall

RUNNING

scan-repos works by analyzing a list of Git repositories or directories containing Git repositories.

You can run scan-repos from inside the current directory:

scan-repos .

Or inside any directory:

scan-repos /my/dir

You can also specify several directories:

scan-repos /my/dir1 /my/dir2

If no directory is specified on the command line, the REPOSPATH environment variable is used:

export REPOSPATH=$HOME/dev:$HOME/my/other/git/repos
scan-repos

Since scanning Git repositories can be quite long, a progress bar can be displayed:

scan-repos -p

Some of the most useful options are:

Option Description
-a Push repositories whose current branch is ahead.
-b Pull repositories whose current branch is behind.
-f Fetch repositories, and thus allows to know which repository has its current branch behind.
-s Check also the states of submodules. Takes longer time.

To get a full list of options, run:

scan-repos -h

EXAMPLES

TODO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published