GitLink icon indicating copy to clipboard operation
GitLink copied to clipboard

fallback branch does not work with different main branches across repos

Open axaluss opened this issue 1 year ago • 1 comments

I am working with dozens of repos and each has a different default brach. Common default branches:

  • develop
  • main
  • master

Git link frequently bails figuring out the correct default branch and remote platform (self hosted gitlab).

Proposed solution inspiration:

  • add default fallback platform
  • allow default branch and platform selection per repo and remember that setting per repository
  • make the default branch a list of branch names e.g. main, master, develop and automatically figure out which actually exists, instead of having to pick just one for all repos

axaluss avatar Apr 11 '23 17:04 axaluss

I think that the third proposed solution will be the best one: a list of fallback branch names to try in sequence.

mcagl avatar May 19 '23 14:05 mcagl