Skip to content

Instantly share code, notes, and snippets.

@tnaka
Created July 8, 2013 01:27
Show Gist options
  • Save tnaka/5945637 to your computer and use it in GitHub Desktop.
Save tnaka/5945637 to your computer and use it in GitHub Desktop.
gitの自動コミットスクリプト
#!/bin/bash
echo '$ cd /data0'
cd /data0
#show status
echo '$ git status'
git status
#add new files in a tree
echo '$ git add -A'
git add -A
echo '$ git commit -m "auto commit `date`"'
git commit -m "auto commit `date`"
echo '$ git push --no-progress'
git push --no-progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment