Skip to content

Instantly share code, notes, and snippets.

@peterchaula
Created April 26, 2017 06:48
Show Gist options
  • Save peterchaula/f9f8ee8c0a871c945480eccfd3d49e1e to your computer and use it in GitHub Desktop.
Save peterchaula/f9f8ee8c0a871c945480eccfd3d49e1e to your computer and use it in GitHub Desktop.
DATE="`date +%Y-%m-%d_%H_%M`"; \
git add .; \
git commit -m "Backup ${DATE}"; \
git push origin HEAD:backup-${DATE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment