Skip to content

FindConflicts

Actionbot edited this page May 17, 2026 · 1 revision

πŸ“™ Description

βš”οΈ Find files with merge conflicts between the default branch and selected branches.

❔ Why

This command is very useful when combined with πŸ§‘β€πŸ’» Find activity (docs) to ensure that applying filters to the default branch doesn't cause any conflicts with active branches. This command can also be used to automatically find conflicts with other branches.

πŸ’» Usage

Let's imagine that we have the same conditions as described here. Now let's run dotnet format for the entire project and commit it.

Input

Note

Before running this command, make sure your team has pushed all recent changes to the remote repository, and run git fetch origin to ensure you have the latest state of all active branches.

To find conflicts in the branches we need, let's run this command

dotnet biak find-conflicts

Next, you need to enter

Default branch ('main' by default): 

The branch into which the specified branches will be merged


Branches separated by spaces that will be merged without committing into the default branch (e.g., f-1 f-2): 

Branches you want to compare with the default branch to detect conflicts. I recommend taking these from the Active branches section of the docs. In our case f-1 f-2 f-3

Output

Start find conflicts command...
Conflicting files [5/15/2026 8:06:51 AM]
TestService1.cs
[f-1]

TestService2.cs
[f-2]

TestService3.cs
[f-3]

Now you can look at the conflicting files and change the filter or simply revert the changes to the default branch.

βš™οΈ Logic

  • Prompt the user to enter the required fields
  • Checkout the default branch
  • Check for not found selected branches
  • Merge every branch into the default branch without commit
  • Get conflicting files
  • Abort merge
  • Checkout the original branch

πŸ”— Links

βš™οΈ Enable / Disable .editorconfig rules

πŸ—‚οΈ Imports

πŸ“¦ Variables

πŸ”Ž Include / Exclude filter

πŸ§‘β€πŸ’» Find activity

βš”οΈ Find conflicts

Clone this wiki locally