QS03 / gitworker

Recover lost commits with flexible configuration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install git
`sudo apt install git`
Create source/target repositories on github account

Bot will clone both repositories, random copy files from source repository to target repository. Random commit will be taken following the configuration.

Create config.json in the script directory and fill out the configuration.
{
  "email": "{your github email}",
  "access_token": "{ your github access token }",
  "source_repo": "{ source repository url }",
  "target_repo": "{ target repository url }",
  "start_date": "2015-01-01",
  "end_date": "2017-01-01",
  "exclude_days": [] ,
  "max_commit": 10,
  "everyday": false
}

Run the bot with root privilege.

Have fun!

About

Recover lost commits with flexible configuration.


Languages

Language:Python 100.0%