forks-sync-3.0.5
توضیحات
Keep all your git forks up to date with the remote default branch.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | forks-sync-3.0.5 |
| نام | forks-sync |
| نسخه کتابخانه | 3.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Justintime50 |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | http://github.com/justintime50/forks-sync |
| آدرس اینترنتی | https://pypi.org/project/forks-sync/ |
| مجوز | MIT |
<div align="center">
# Forks Sync
Keep all your git forks up to date with the remote default branch.
[](https://github.com/Justintime50/forks-sync/actions)
[](https://coveralls.io/github/Justintime50/forks-sync?branch=main)
[](https://pypi.org/project/forks-sync)
[](LICENSE)
<img src="https://raw.githubusercontent.com/justintime50/assets/main/src/forks-sync/showcase.png" alt="Showcase">
</div>
If you manage more than a couple git forks, keeping them up to date with their remote default branch can be a pain. Forks Sync lets you avoid all the fuss by concurrently cloning each of your projects locally, adding the remote upstream, fetching new changes, rebasing your local default branch against the remote default branch, and `force pushing` to your repo's origin default branch - keeping all your forks up to date with the original repo.
By default, Forks Sync will save all your forks to `~/forks-sync` where you can also find logs for this tool.
**This tool will forcefully update the default branch of your fork to match the upstream default branch which could results in loss of changes if they are not committed on default branches.**
## Install
```bash
# Install tool
pip3 install forks-sync
# Install locally
make install
```
## Usage
```
Usage:
forks-sync --token 123...
Options:
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
Provide your GitHub token to authenticate with the GitHub API.
-f, --force Pass this flag to force push changes to forked repos, otherwise the tool will run in "dry mode".
-th THREADS, --threads THREADS
The number of threads to run.
-to TIMEOUT, --timeout TIMEOUT
The number of seconds before a git operation times out.
-l LOCATION, --location LOCATION
The location where you want your forks and logs to be stored.
```
### Automating SSH Passphrase Prompt (Recommended)
To allow the script to run continuosly without requiring your SSH passphrase, you'll need to add your passphrase to the SSH agent. **NOTE:** Your SSH passphrase will be unloaded upon logout.
```bash
# This assumes you've saved your SSH keys to the default location
ssh-add
```
## Development
```bash
# Get a comprehensive list of development tools
make help
# Run the tool locally
venv/bin/python forks_sync/sync.py
```
نیازمندی
| مقدار | نام |
|---|---|
| ==1.* | PyGithub |
| ==0.2.* | woodchips |
| ==1.7.* | bandit |
| ==23.* | black |
| ==0.10.* | build |
| ==5.* | flake8 |
| ==5.* | isort |
| ==1.1.* | mypy |
| ==7.* | pytest |
| ==4.* | pytest-cov |
| ==4.* | twine |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7, <4 | Python |
نحوه نصب
نصب پکیج whl forks-sync-3.0.5:
pip install forks-sync-3.0.5.whl
نصب پکیج tar.gz forks-sync-3.0.5:
pip install forks-sync-3.0.5.tar.gz