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 writeWorkflows, and set access toRead and write
-
Click
Generate token -
Copy the generated token
Set Github mirror in Twigg.
-
Go to home and open your repository.
-
Click the repository settings icon.
-
Scroll to Git Mirror section and click on the switch button to enable it.
-
Construct your mirror URL
https://<TOKEN>@<HOST>/<ORG>/<REPO>.git- Click
Save URL.
Your setup is complete. From now on, any commits submitted in Twigg will be automatically pushed to the twigg branch of the mirrored repository GitHub.