git-check-all
This scripts looks for all directories in the users’ home directory
that are managed by the git revision control system (i.e. that have a
.git
subdirectory).
For each of those directories it checks whether there are uncommitted
changes by running git status
. If there aren’t any, it runs git
gc
using the --auto
option, to cleanup and optimize the repository.
The git-check-all.py script can be found on github. It requires python (version 3) and git.
python (version 3), git
For comments, please send me an e-mail.
Related articles
- Simple setup.py for python scripts
- img4latex
- Opening files from the command line
- Generate random passwords
- vid2mkv