In short, yes. There is also a very safe way to do this.
Situation 1: Your Live = development-2 (ie no open work in that branch at the moment)
- In the more actions menu on
Main, click “Reset to Live” to make yourMainbranch the same as whats inLive. You can now delete, or just sideline, thedevelopment-2branch. You now have a cleanMainto create new branches and start new development work.
Situation 2: development-2 has work that does not yet exist in Live
- In the more actions menu on
Main, click “Reset to Live” to make yourMainbranch the same as whats inLive. This gives you a stable place to start the merge withdevelopment-2 - Create a new branch off of
development-2to save the work that exists indevelopment-2 - Merge
Mainintodevelopment-2using the “Sync with Main” action to ensure there are no conflicts. SinceMainis up to date withLivefrom Step 1, there shouldn’t be any conflicts. - Finally, merge
development-2intoMainto getMainup to date withdevelopment-2. Once you are confident they are the same, you can go ahead and delete or sidelinedevelopment-2& remove the safety branch you created in Step 2.
Let me know if you have any questions