Created
November 7, 2023 18:59
-
-
Save gaurav9822/fe4799ccd0cb3d364a39141f3f93cef2 to your computer and use it in GitHub Desktop.
Auto gitpull
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a plist script - local.gitPullSreHelm.plist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>local.gitPullSreHelm</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>git</string> | |
<string>-C</string> | |
<string>/Users/gauravd/IdeaProjects/sre-helm-charts</string> | |
<string>pull</string> | |
</array> | |
<key>StandardErrorPath</key> | |
<string>/tmp/local.gitPullSreHelm.err</string> | |
<key>StandardOutPath</key> | |
<string>/tmp/local.gitPullSreHelm.out</string> | |
<key>StartInterval</key> | |
<integer>60</integer> | |
</dict> | |
</plist> | |
Put it in ~/Library/LaunchAgents | |
Start with - launchctl load ~/Library/LaunchAgents/local.gitPullLectureCode.plist | |
https://levelup.gitconnected.com/save-time-by-automating-your-git-pulls-498120870582 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment