A common assumption is that moving Power BI PBIR reports into Git means copying a report folder into a repository and committing the files. That approach is incomplete. Power BI PBIR reports contain structured report definitions, visual metadata, page folders, query bindings, and references to semantic model objects. Git can track those changes effectively, but only when the project is prepared, the right files are included, and report identities and bindings are preserved during edits.
The safest process is to enable the Power BI Project and PBIR formats, create a clean .pbip project, inspect the generated report structure, exclude local and sensitive files, commit a known-good baseline, and validate the report after every structural change. Git should preserve the report definition, not replace Power BI Desktop as the environment for opening, testing, and publishing the report.
PBIR Reports Are Not Just JSON Files
PBIR, short for Power BI enhanced report format, represents a Power BI report as a structured collection of files rather than a single opaque .pbix package. The report definition is organized into JSON and supporting files that describe pages, visuals, filters, themes, bookmarks, and other report elements. A Power BI project typically uses a .pbip project file to connect the project structure to the report and semantic model definitions.
That distinction matters because Git tracks text changes well, but it does not understand whether a changed visual still points to the correct semantic model field. A clean diff does not prove that a report still works.
A PBIR project commonly includes details such as:
A report definition and report-level metadata.
Page and visual folders, with individual visual configuration files.
Query and projection information that binds visuals to semantic model fields.
Theme, bookmark, filter, and static resource definitions.
A separate semantic model representation, which may use TMDL depending on the project configuration and Power BI Desktop support.
The exact folder structure depends on the Power BI project configuration and the features used by the report. Teams should inspect their generated project rather than assume every PBIR project contains identical files.
The most important information-gain detail is the relationship between a visual's configuration and its semantic model references. A visual may contain a query, projections, filters, or configuration values that refer to fields, measures, tables, or roles by internal identifiers. Changing a display label is not the same as changing a binding. Treating every JSON edit as harmless text replacement is how reports become difficult to open or visually incorrect.
Our earlier guide to preparing Power BI project files for AI-assisted changes covers the broader reason folder-based Power BI projects improve inspection and review.
Why Does Moving PBIR Into Git Break Bindings?
Moving PBIR into Git does not inherently break bindings. Bindings break when the move changes the project structure, semantic model references, internal identifiers, or deployment assumptions that the report depends on.
The most common failure is not Git itself. It is an unreviewed transformation between a .pbix file and a Power BI project. For example, a team might open a report, change the model, save it as a project, manually rename folders, and then commit only the files that appear relevant. The report may still open locally, but a page or visual can lose its intended field mapping.
Several types of changes deserve special attention:
Internal identifiers. Power BI uses identifiers for report objects, pages, visuals, filters, and model entities. A human-readable name such as “Revenue” does not necessarily identify the object uniquely. Renaming a file or folder can therefore be more dangerous than renaming a visible title.
Semantic model changes. A measure can keep the same display name while its expression changes. A table can be renamed while visuals still reference its prior identity. Model changes should be reviewed alongside report changes, not treated as unrelated commits.
Visual query bindings. A visual's query definition and projection mappings determine which model fields appear in its roles, such as axis, value, legend, or tooltip. If a field is removed, renamed, or moved, the visual configuration may remain present while the binding becomes invalid.
Project-relative paths. Supporting assets, custom themes, images, and static resources may be referenced through project-relative paths. Moving files outside the expected structure can create missing-resource problems that are not obvious from a high-level Git diff.
Format compatibility. PBIR capabilities and Power BI Desktop support evolve. A project generated by one version of Power BI Desktop should be tested with the version used by the development team and release process. Git stores the files, but it does not resolve format-version differences.
A useful rule is simple: preserve identifiers and structure first, then review the content changes. Do not start by making the repository look tidy.
What Should You Commit From a Power BI PBIR Project?
Commit the files required to reconstruct, review, and test the approved report and semantic model. Exclude credentials, local caches, temporary exports, and machine-specific files that do not belong in source control.
The repository should have a clear boundary between authoritative project content and local working content. The authoritative content includes the .pbip project file, report definitions, approved semantic model definitions, themes, documented configuration, and other assets required by the report. Local content includes personal settings, temporary files, generated previews, credentials, and caches.
A practical repository inventory looks like this:
| Project element | Commit to Git? | Reason |
|---|---|---|
.pbip project file | Yes | Connects the project to its report and model structure |
| PBIR report definition | Yes | Stores report pages, visuals, filters, and related metadata |
| Semantic model definition | Yes, when part of the project | Keeps model logic and report bindings reviewable together |
| TMDL files | Yes, when used | Represents semantic model metadata in a text-oriented structure |
| Approved theme files | Yes | Preserves report appearance and reusable styling |
| Static resources used by the report | Usually | Required when the report depends on those assets |
| Credentials and connection secrets | No | Creates an access and security exposure |
| Local cache or temporary export | No | Adds noise and can cause environment-specific behavior |
| Personal Power BI Desktop settings | No | Does not represent the shared report definition |
| Generated files not required for reconstruction | Usually no | Avoids confusing review and unnecessary repository growth |
The word “usually” in this table is intentional for generated files and static resources. A file should be committed when the report needs it and the team has decided that it is part of the governed project. A file should be excluded when it is disposable, machine-specific, or sensitive.
A .gitignore file is necessary, but it is not enough. Review the repository after the first commit. Confirm that no access tokens, connection strings, local paths, or exported data have entered the history. Removing a secret from the latest commit does not remove it from every prior Git commit, so prevention is safer than cleanup.
How Do You Move Power BI PBIR Reports Into Git?
The safest migration uses a known-good baseline and validates the project before introducing branches or automated edits. The process is less about uploading files and more about proving that the project can be reopened and compared.
1. Start with an untouched working copy
Keep the original .pbix file and record the workspace, report name, semantic model name, Power BI Desktop version, and any relevant publishing details. Do not overwrite the only copy during conversion.
If the report contains important themes, images, custom visuals, bookmarks, or deployment-specific settings, document them before conversion. A folder-based project exposes more detail than a .pbix file, but it does not automatically document the design decisions behind that detail.
2. Enable the project and PBIR formats
Use the supported Power BI Desktop settings for Power BI Project files and the enhanced report format. The exact preview or feature-toggle experience changes as Microsoft develops the formats, so confirm the current behavior in the Power BI Desktop version used by the team.
Save a copy as a Power BI project. Do not manually create a PBIR folder by copying individual JSON files from an unrelated report. Power BI Desktop should generate the initial structure so that required metadata and relationships are established correctly.
3. Open and test the generated project
Close and reopen the generated project before committing it. Check representative pages, slicers, drillthrough behavior, bookmarks, tooltips, filters, custom visuals, and interactions. Refresh the model when the environment permits it, and confirm that the report behaves like the original.
This is the first binding checkpoint. Compare visual fields and roles, not just page titles. A page that appears visually similar can still contain a broken measure reference or a changed filter context.
4. Inspect the directory structure
Use a code editor or file browser to understand which files Power BI generated. Identify the report definition, page and visual folders, semantic model files, themes, static resources, and any files that appear temporary or machine-specific.
Do not rename generated folders for readability. If the team needs friendlier documentation, add a README or repository map rather than changing the names that Power BI expects.
5. Add repository controls
Create the .gitignore, README, contribution guidance, and review rules before the first shared commit. Explain which Power BI Desktop version the team should use, how to open the project, what changes require a visual validation pass, and which files should not be edited manually.
A protected main branch is appropriate for many teams. Short-lived feature branches are useful when developers need to isolate report changes, model changes, or automation experiments. The branching model should support review, not create a maze of long-lived copies.
6. Commit a clean baseline
Commit the generated project without unrelated formatting changes. Use a message that identifies the baseline and, where useful, the source report version. This commit becomes the comparison point for future changes.
The baseline should represent a report that opens successfully. Do not use the first commit as a dumping ground for old exports, duplicate .pbix files, screenshots, and temporary diagnostics.
7. Clone and validate from Git
The migration is not complete until another working directory can clone the repository and open the project. This test catches missing assets, incorrect relative paths, uncommitted files, and undocumented local prerequisites.
For a team, a clean clone is more valuable than a successful open from the original conversion directory. The original directory may contain files that were never added to Git, which hides an incomplete migration.
How Should You Review PBIR Changes in Git?
Review PBIR changes at three levels: file structure, semantic meaning, and report behavior. A Git diff supplies the first level, but the other two require Power BI knowledge and an actual validation process.
A useful review starts by identifying the intent of the change. Is the pull request changing a visual title, adding a page, modifying a measure, changing a filter, replacing a theme, or restructuring the model? The expected files should match that intent. A request to change one visual should not unexpectedly modify dozens of unrelated visual definitions.
For a visual change, inspect:
The visual's configuration and type.
Its query and projection mappings.
Referenced table, column, and measure identifiers.
Filters at the visual, page, and report levels.
Sorting, grouping, drillthrough, and interaction settings.
Any related theme or static resource changes.
For a model change, inspect the corresponding semantic model definition, including measures, columns, relationships, calculation logic, and roles where applicable. A report pull request that changes only report JSON while silently relying on an uncommitted model change is not complete.
Formatting noise deserves special attention. If an editor rewrites indentation, property order, or line endings across many files, reviewers may struggle to see the meaningful changes. Configure consistent formatting and avoid tools that rewrite entire PBIR files unless the resulting diff is expected and reviewed.
Power BI Desktop remains the final behavioral test. Open the branch, refresh or validate the model as appropriate, inspect affected pages, and test the interactions that the change could influence. Automated JSON validation is useful, but it cannot prove that a measure returns the intended result or that a slicer filters the correct visual.
What Are the Safest PBIR Editing Practices?
The safest practice is to edit PBIR files only when the team understands the specific structure being changed and has a repeatable validation method. Manual editing is not automatically unsafe, but it requires more discipline than changing a report through the Power BI interface.
Use Power BI Desktop for structural operations when the format or object relationship is unclear. Use direct file edits for controlled, repeatable changes that the team can inspect and test. For example, a standardized theme update may be suitable for automation, while rewriting visual projections across multiple pages requires a stronger understanding of the report definition and semantic model.
Keep changes small. A pull request that changes one business requirement should not combine a model redesign, page rearrangement, theme overhaul, and repository cleanup. Small commits make it easier to identify which change introduced a broken binding.
Preserve stable identifiers wherever possible. Do not regenerate a visual, page, or model object merely to change its visible label if the intended result can be achieved without replacing the object. Recreated objects can produce large diffs and complicate downstream references.
Test after risky operations. Renaming a measure, deleting a column, changing a relationship, moving a visual between pages, and modifying a bookmark can have effects beyond the file being edited. Validation should include affected visuals and any report feature that depends on the changed object.
Teams that need broader guidance on Power BI data modeling and report structure can also review our Power BI Excel import guidance, especially where imported fields and transformation logic influence report design.
How Do You Handle PBIR Merges and Conflicts?
PBIR merges require semantic judgment because Git can merge text while producing a report that is logically wrong. A conflict-free merge is not proof that the combined report is valid.
Avoid having two branches make competing edits to the same page or visual when practical. Assigning ownership by report area reduces collisions, but it does not replace review. Model changes deserve coordination because a single renamed field can affect many visual bindings.
When a conflict occurs, do not resolve it by selecting “ours” or “theirs” without opening the affected project. First determine what each branch intended to change. Then inspect the relevant report and model definitions, resolve the files carefully, and open the merged project in Power BI Desktop.
After a merge, validate:
The project opens without errors.
The affected pages contain the expected visuals.
Visual fields, measures, filters, and interactions remain correct.
Bookmarks, drillthrough, tooltips, and navigation still work.
The semantic model refreshes or validates in the intended environment.
The final diff contains no credentials, temporary files, or accidental broad rewrites.
A merge strategy that protects the report from silent semantic damage is more important than one that produces the smallest number of conflict markers.
What Should a PBIR Git Workflow Include?
A durable workflow connects source control with report validation, model governance, and release management. Git provides history and review, but the surrounding process determines whether that history is useful.
At minimum, define who can merge changes, which Power BI Desktop version is supported, how branches are named, and what testing is required for report-only versus model-affecting changes. Add a repository README that explains how to clone and open the project from a clean directory.
A mature workflow also separates development from publication. Developers should review changes in Git before publishing to a shared workspace. Deployment pipelines, workspace permissions, and release approvals then provide additional controls around promotion. These controls do not replace source control. They address a different part of the lifecycle.
Documentation should explain business meaning, not repeat the JSON. Record why a measure exists, what a filter is intended to include, which pages are authoritative, and what validation proves the report is ready. This context helps reviewers evaluate whether a binding is merely syntactically present or still represents the intended analysis.
If a team is migrating a wider reporting environment, our article on building finance reporting control during an Excel to Power BI migration provides related guidance on separating governed reporting logic from flexible analysis.
What Changes After PBIR Is in Git?
Moving Power BI PBIR reports into Git changes report development from opaque file replacement to inspectable project work. The next stage is not automating every JSON edit. It is building confidence that each report change preserves the intended semantic model, visual bindings, filters, and user experience.
Teams that establish a clean baseline, protect identifiers, review model and report files together, and validate from a clean clone gain a more reliable foundation for collaboration and automation. Teams that skip those controls simply move fragile report behavior into a more visible repository.
Our Power BI consulting resources can help you think through project preparation, source control boundaries, and review practices. If you want to discuss how this approach fits your reporting environment, contact Versich.
The practical next step is to select one representative report, preserve its original .pbix file, generate a clean PBIP and PBIR project, validate the bindings, and commit only the approved project content. That baseline will show what your team needs before expanding Git-based development across more reports.

