Github
First create your fine-grained personal access token.
-
Go to personal-access-tokens.
-
Click in
Create new token. -
Choose a name, for example:
twigg-mirror-<YOUR-REPO-NAME>. -
Select an expiration date. You'll have to repeat this process when the token expires, so feel free to chose a large duration.
-
Under
Repository accesschooseOnly select repositoriesand select the target repository. -
Under
Permissions, clickAdd permissions, select:
Contents, and set access toRead and write.Workflows, and set access toRead and write.
-
Click
Generate token. -
Copy the generated token.
Now lets set mirror in twigg.
- Go to home and open your repository.
- Click in repository setting icon.
- Scroll to
Git Mirrorsection and click on the switch button to enableGit Mirror. - Construct your mirror URL using this format:
https://<TOKEN>@github.com<PATH-TO-YOUR-GITHUB-REPOSITORY>
Example:
https://ghp_abcd1234@github.com/your-org/your-repo.git
- Click
Save URL.
Your setup is complete. After this, any submitted commits in Twigg will be automatically pushed to the mirror repository on GitHub.