Sublime Forum

How To Add Multiple Repositories In Folder Structure

#1

Visual Studio adding repositories is as simple as adding the root folder containing multiple sub-folders with hundreds of repositories. How is something like this done with Sublime Merge?

0 Likes

#2

Sublime Merge is designed to handle one repository per window at the moment.

0 Likes

#3

Understood, but thats not really the issue. Visual Studio also does not open multiple repositories, but this is how one gets them enrolled with the tool.

My goal would be to have the repositories available with the “Switch Repository” command, but to do so at the moment requires tedious single repo rinse lather repeat approach.

0 Likes

#4

The easiest way I can think of is to use the command line & the smerge command (docs):

cd /path/to/repositories
for x in */; do
    smerge "$x"
done

You can then close each window by typing & holding Cmd+W or Ctrl+W. Be sure to quit the application as well to make sure the new repositories get successfully saved to your session.

1 Like