- Place homeSync.sh and homeSync.plist in your home dir
- It's recommended to place the
.gitignore
in your home dir as well, to prevent checking in all your things :)
After doing that, run the following commands in ~/
.
cd ~
git init
git remote add origin <https://your/git/repo.git>
cp homeSync.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homeSync.plist
If you're having issues, check the logging:
cat /tmp/homeSync.err
cat /tmp/homeSync.out