Roland's homepage

My random knot in the Web

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

Note

creative commons public domain logo

To the extent possible under law, Roland Smith has waived all copyright and related or neighboring rights to git-check-all.py. This work is published from the Netherlands.


←  make-flac dicom2png  →