fetches and cleans git repositories recursively
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
gap.py

README.md

Git AutoPull

Git AutoPull fetches and cleans every bare git repository (directories ending with .git) recursively. The directory scanned is either the first parameter, or the current working directory, if omitted.

Git recommends running GC on repositories that are not manipulated in any other way at the moment, so the recommended use-case is to run this script from crontab at moments when noone wants to access the repository.