When you add a GitHub app, a default repository group is automatically created, and includes the repositories that you specify. You can create more repository groups for data that has different backup requirements.
Procedure
From the navigation pane, go to Protect > DevOps.
The DevOps page appears.
In the upper-right area of the page, click Add app.
The Add DevOps dialog box appears.
Click the GitHub tile.
The Add app dialog box appears.
In the App name box, enter a name for the app.
To back up an on-premises GitHub enterprise server, in the Host URL box, enter the URL for the GitHub enterprise server.
In the Token name box, enter the name of the token to access the app.
In the Access token box, enter the access token to access the app.
For more information about creating an access token, go to the GitHub docs site.
For information about the required access token permissions and user roles, see Personal Access Token Permissions and User Roles.
From the Account type list, select the account type—personal or business/institution—and then select the account or organization.
To back up the repositories owned by the user account, select Personal. To back up the repositories owned by the organization, select Business/Institution.
From the Access node list, select the access nodes that you added for GitHub.
For Repositories, specify whether to back up all repositories or only the repositories that you select.
By default, the entire repository is backed up.
To specify the staging path, in the Staging path box, enter the folder to stage the data in for backups.
By default, the Job Results folder is used as the staging path. The staging path must start with the character “\\”. You cannot specify a mounted path under a drive as the staging path.
From the Plan list, select the server plan to use for the app.
To browse the app with credentials, move the Impersonate user toggle key to the right, and then enter the credentials.
If you provide a UNC path for staging, you must impersonate as a user that has access permissions to the UNC path.
Click Save.