Sublime Forum

Package Control Add Repository/Channel

#1

Total newb questions, although I still think these should be addressed in the docs:

  1. What is the difference between Add Repository and Add Repository Channel in the Package Manager?
  2. Is this the same as cloning a repo directory into the Packages directory?
  3. Which URI scheme should we use https:// vs git:// ?

Thanks!

1 Like

#2

A repository channel is a list of repositories. Repositories contain one or more packages. By default Package Control ships with a default channel, sublime.wbond.net/repositories.json.

Unless you are planning on maintaining an ecosystem of repositories separate from the default one, you probably just want to Add Repository. I’ll be sure in the next release to just call it a Channel, not a Repository Channel. I should also add some more user-focused docs about the difference.

Package Control uses http to download packages from GitHub, BitBucket and other sources. You will get a similar effect by doing a git checkout, it is just that Package Control automatically keeps your packages up-to-date automatically and offers some things like messaging and usage stats (wbond.net/sublime_packages/community) to package developers.

If you want to add a GitHub repo to Sublime that is not included in the default channel, you want to use the Add Repository command and paste in an github.com/user/repo URL.

1 Like

#3

Very helpful! Thanks for the detailed response!

0 Likes