How can I establish a trigger to a script (python, ideally) in Git that triggers when the main has any successful commits for a particular repo? I need to establish an "auto push" mechanism to update particular remote filesystems.
If its possible to extend this to trigger on commits to a particular branch, that would be great.
This is a typical use case for git hooks .
You can start with Customizing Git - Git Hooks and the web is full with information for you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.