https://github.com/endormi/upstream
Automatically upstream a repo
https://github.com/endormi/upstream
bash-script fork forked-repo git github-api upstream
Last synced: 6 months ago
JSON representation
Automatically upstream a repo
- Host: GitHub
- URL: https://github.com/endormi/upstream
- Owner: endormi
- License: mit
- Created: 2022-06-25T08:48:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T08:01:10.000Z (11 months ago)
- Last Synced: 2025-03-11T09:19:31.281Z (11 months ago)
- Topics: bash-script, fork, forked-repo, git, github-api, upstream
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Upstream
BASH script to automatically upstream a forked repo.
## Usage
First you need to generate a personal access token. Follow this [tutorial](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) and then copy-paste the value to `ACCESS_TOKEN`.
Clone the repository:
```
git clone https://github.com/endormi/upstream.git
```
> You have the option to check a global and/or local repository.
Run (check local repository):
```
chmod +x upstream.sh
./upstream.sh
```
Run (check global repository):
Provide the argument in the format of `owner/repository` for example `endormi/upstream`.
```
chmod +x upstream.sh
./upstream.sh owner/repository
```
Check [local_example.sh](https://github.com/endormi/upstream/blob/main/local_example.sh) (just a quick script) to see how to merge-upstream multiple repositories locally.
Check [global_example.sh](https://github.com/endormi/upstream/blob/main/global_example.sh) (just a quick script) to see how to merge-upstream multiple repositories globally.
**NOTE**: Curl request to GitHub API might get rejected due to API rate-limiting (if you use it too many times).