Skip to main content

Perform Batch Git operations based on Config file

Project description

Batch-clone you Git repos

What:

Define all your Git repos and the folder structure they sould be organized (if you have one) in a YAML file and then just run the script. It uses the Git CLI for that.

If you want to clone repos by SSH, make sure your keys are set and working.

Why:

I had a problem: whenever I had to use a new PC at work or at home, I had to clone several Git repos. This quickly became a PITA, so I created this small Python script to do that for me.

Feedback

All and any feedback, suggestion, improvement and/or bug-fix is highly appreciated. This is a small script but quite useful, so I hope it will also help others...

Future

I hope to keep improving it. My task list is, so far:

  • [ ] Support parameters on the command line:
    • [ ] Prefix Path
    • [ ] Config File
    • [ ] Git Key Location and/or User/Pass
  • [ ] Function to manage the YAML from the command line (CRUD the config)
  • [X] Clone repositories in parallel
  • [ ] Error handling
  • [ ] Package as PyPy
  • [ ] Use a Git library (such as GitPython) instead of the CLI

Once again, any and all suggestion and feedback is much appreciated.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gitbatch, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size gitbatch-0.0.1-py3-none-any.whl (7.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size gitbatch-0.0.1.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page