Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
845 views
in Technique[技术] by (71.8m points)

git - 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

GitHub provides RSS feeds for both directories and files that can do this. See Setting up an Github Commit RSS feed

Using that you can set up an email alert using a service like https://blogtrottr.com/ to send you an email whenever the feed is updated.

Example: To watch this directory: https://github.com/torvalds/linux/tree/master/Documentation use this atom feed https://github.com/torvalds/linux/commits/master/Documentation.atom

Example: To watch a file: https://github.com/torvalds/linux/commits/master/Documentation/Makefile https://github.com/torvalds/linux/commits/master/Documentation/Makefile.atom


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...