Back up and synchronize your Postman Collections on GitHub (the largest host of source code in the world) and on any of your custom GitHub domains. Your Collections are all tucked in safe and sound with our latest Postman Pro to GitHub Integration.
Setting up a GitHub integration requires you to get a GitHub Personal Access Token and configure how you would like to back up your collections.
Log in to GitHub.
If you don’t already have a Personal Access Token from GitHub, generate a new one.
We need the
repo and the
user scope in order to successfully configure the integration.
Click View Details to see information about Github and how it can back up your Postman Collections to your designated repositories.
You also can click the Configured Integrations tab to set up other integrations, view available integrations for Github, or view all integrations.
The above screen provides you the following two options: * [Backup your Postman Collections to GitHub](#backup-collections-to-gitHub) * [Backup your Postman Collections to GitHub on a custom domain](#backup-collections-to-gitHub-on-custom-domain)
Click the Add Integration button to authorize a backup of your Postman collections.
Enter your GitHub Personal Access Token and click the Proceed button.
* Select a collection to back up. * Select the repository. * Enter the directory where the collection will be pushed. If the directory does not exist, it will be created for you. If you do not specify anything, the default directory will be `Postman Collections`. * Enter the file name of the collection in the repository. * Enter the branch where the collection will be pushed. This branch should already exist in your repository. If you do not specify anything, it will be pushed to the default branch of the repository.
Click the Add Integration button.
Every change saved to your Postman Collection automatically commits changes to your GitHub repo in real time. Your Collections and code can live together in perfect harmony in the same repository.
Enter your GitHub Personal Access Token, specify your GitHub custom domain and click Proceed.
In the Backup your Postman Collections page, choose an existing Postman Collection, your GitHub repository, specify a file name for your backup and enter the name of the branch.
Now every change that is saved to your Postman Collection automatically commits changes to your GitHub repository in real time. Your Collections and code can exist in the same repository. You can navigate to your GitHub repository and view your collections, as illustrated in the screen below: