Created
December 18, 2018 21:52
-
-
Save mathew-fleisch/92a65fa9296f7a3c4fe35b22ee3cebfb to your computer and use it in GitHub Desktop.
Update repo
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
# Standard | |
*/5 * * * * cd /path/to/repo && git pull origin master | |
# Overwrite all changes with master | |
*/5 * * * * cd /path/to/repo && git fetch --all && git reset --hard origin/master | |
# Pull changes, but persist local changes (i.e. config that is not checked into repo) | |
*/5 * * * * cd /path/to/repo && git stash && git pull origin master && git stash pop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment