Skip to content

philippemilink/git-repos-saver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-repos-saver

A Python script to save Git repositories from GitHub.com and GitLab instances.

Installation

Requires at least Python 3.7.

pip install -r requirements.txt

Configuration

Create an SSH key and register it in your GitHub and/or GitLab settings. This key must not have a passphrase.

You need an access token from each forge:

  • for GitLab, the token needs the scopes read_api and read_repository,
  • for GitHub, the token needs the scope repo.

Copy the config.yaml.dist into config.yaml and adapt the configuration.

You can provide an URL to be pinged after all forges are saved.

Execution

python script.py config.yaml

About

A Python script to save Git repos from GitHub and Gitlab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages