Search code examples
gitgithubdirectoryrepository

How to 'Watch' only a directory in a GitHub repository?


For example, https://github.com/vanillaforums/Garden is the GitHub repository. But I only want to 'watch' this directory https://github.com/vanillaforums/Garden/tree/master/plugins in the repository.

How do I do that? There doesn't seem to be a way.


Solution

  • GitHub provides feeds that can do this for both directories and files.1 Using that syndication, a service like Blog Trottr can send you an email whenever the feed is updated.

    Some samples, taken from the Linux source code on master:

    Directory File
    Source on GitHub /Documentation /Documentation/Makefile
    History on GitHub /Documentation /Documentation/Makefile
    History Atom feed /Documentation /Documentation/Makefile

    1 Thank you, youfu.