In this comprehensive guide, you’ll learn how to set up and manage GitHub integration in Microsoft Fabric. Whether you’re pushing changes from your desktop or pulling updates from your repo, this tutorial will help streamline your Power BI development workflow
1. Generate a GitHub Personal Access Token
Before enabling GitHub integration in Microsoft Fabric, you need to generate a Personal Access Token (PAT) in GitHub with the correct permissions:
- In GitHub, go to Settings > Developer settings > Personal access tokens > Fine-grained tokens
- Click Generate new token, select an expiration period, and give it a name
- Choose only the repositories you want Fabric to access
- Set the Contents permission:
- Use Read and write if Fabric will push changes
- Use Read-only if Fabric will only pull updates
- Generate and copy the token

2. Connect GitHub to Your Fabric Workspace
To start using GitHub integration in Microsoft Fabric, follow these steps:
- In Fabric, go to Workspace Settings > Git Integration
- Select GitHub and click Connect
- Enter a display name, your PAT, and the GitHub repo URL
- Click Add your connection will appear in the Fabric gateway-style Connections list

3. Sync the Correct Folder and Branch
Fabric requires you to point to a specific branch and folder in your GitHub repo.
- Choose the branch (e.g.,
adventureworks) - Specify the folder (e.g.,
ProjectYoda) that contains the reports - Click Connect and Sync
Without a folder path, Fabric will not import any files.
4. Refresh Models and Data
Once synced, Fabric imports the report definitions, but not the data.
- Open the Semantic model settings
- Reconfigure or confirm your data source connections
- Refresh the model
- Open the report and click Refresh

5. Make Edits in Both Directions
From Desktop to Fabric
- Clone your GitHub repo locally
- Open the Power BI report and make a change
- Save and run:
git add . git commit -m "New report page" git push - In Fabric, click Update all to pull the change

From Fabric to GitHub
- Edit the report in Fabric
- Commit the changes in the Source Control panel
- In GitHub, confirm the commit
- In your local repo, run
git pullto get the latest update
6. Manage Changes with Pull Requests
When working on a feature branch:
- In GitHub, create a new Pull Request from
adventureworkstomain - Review and merge the changes
- Pull the merged updates to your local or Fabric workspace
Best Practices
- Use least-privilege access tokens
- Always define a specific folder in your repo
- Use branches and pull requests for collaboration
- Refresh semantic models after syncing
- Commit frequently to reduce conflicts
Power BI Training Resource
For more advanced Power BI development and deployment practices, check out this excellent Power BI Training.







