Last active
August 29, 2015 14:01
-
-
Save ptb/b59c63cfdb71678d3d00 to your computer and use it in GitHub Desktop.
Commit All File Changes to Git Repository, Automatically
This file contains 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
#!/bin/sh | |
/usr/bin/find . -type d -empty -exec touch {}/.keep \; | |
/usr/local/bin/git add --all /Users/ptb/Copy/; /usr/local/bin/git commit --message='' --allow-empty-message |
This file contains 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
<?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>me.ptb2.autogit</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/ptb/Copy/commit.sh</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>WatchPaths</key> | |
<array> | |
<string>/Users/ptb/Copy</string> | |
</array> | |
<key>WorkingDirectory</key> | |
<string>/Users/ptb/Copy</string> | |
</dict> | |
</plist> |
This file contains 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
#!/bin/sh | |
/usr/local/bin/git push --set-upstream origin --all | |
/usr/local/bin/git push --set-upstream origin --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment