Skip to content

Sync the default branch for all forks you create on GitHub.

License

Notifications You must be signed in to change notification settings

h0arry/sync-github-forks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abstract

This command line utility merges all of your forks with the parent project. This is to ensure your forks do not get out of date.

In general, you should be using separate branches for pull requests, so you should not be bothered if the default branch gets updated.

Installation

Use pip:

pip install sync-github-forks

Configuration

To use this you need a simple configuration file in your home directory at ~/.github-api.yml. It should have 2 keys: user and password. Both are strings.

username: my_user_name
password: 'password'
blacklisted_forks: []

Remember to quote your any of the values if necessary (if your password begins with { for example).

If you use two-pass authentication, you should create an access token and use that as your password instead.

blacklisted_forks is a list of repository full names (e.g. myname/myproject) that are forks that should be ignored. This is usually due to too much divergence from the original.

Running

Running the utility is simple. Just run sync-github-forks.

About

Sync the default branch for all forks you create on GitHub.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%