echo "Auto commit at $(date)" >> commits.log &&
git config --local user.name "longhao" &&
git config --local user.email "longhao@example.com" &&
git add commits.log &&
git commit -m "Auto commit: $(date +'%Y-%m-%d %H:%M:%S')" &&
git push origin main
longhaoliu/auto-commit-demo
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|