Skip to content

Instantly share code, notes, and snippets.

@poa00
Forked from Itope84/commit.sh
Created April 24, 2024 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poa00/a87e152f654f028a89988290c3a3e3b3 to your computer and use it in GitHub Desktop.
Save poa00/a87e152f654f028a89988290c3a3e3b3 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd c:/xampp/htdocs/demoproject
git add --all
timestamp() {
date +"at %H:%M:%S on %d/%m/%Y"
}
git commit -am "Regular auto-commit $(timestamp)"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment