Git - Do you know how to avoid large PRs?
Updated by Brady Stroud [SSW] 1 year ago. See history
The default option is to use a feature branch strategy which is awesome for small chunks of work. However, if you know that your work involves 2+ devs working on different tasks and they cannot work in isolation, then it can be tricky. For example, if you need to migrate from Gatsby to Next.js or if you have to upgrade from Xamarin to .NET MAUI then a feature branch strategy might not be appropriate. In that case choose from the below options:
Option 1 - Create a new repository
This is a good option if you are concerned with legacy technical decisions impacting the future application.
✅ Pros
- Clean snapshot of legacy application
- No risk of the legacy application being used or referenced
- Isolated backlog – keep issues about the new project separated
❌ Cons
- Loss of history in one mono repo
- Isolated backlog – cannot see old feature or bug requests
- Have to migrate important issues later

Figure: Good example – Developing the new application in a new repo
Option 2 – Create a new folder and keep merging using small PRs
In this scenario you will be replacing the old project (folder) at the end for a final rubber stamp PR
This is a good option if you are not worried about the legacy application influencing the new application.
✅ Pros
- Keeps history of previous iteration in one repo
- Sharing the same backlog – can see both old and new PBIs
- Can clearly see the difference after the final PR
❌ Cons
- Potential to reference or use old code/models
- Must implement bug fixes for the new + the old project
- Easier to be influenced by past legacy decisions
- Sharing the same backlog – can see both old and new PBIs

Figure: Good example – Developing your new application in a new folder
Need help?
SSW Consulting has over 30 years of experience developing awesome software solutions.