Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am doing some development by myself, so I don't have to worry about builds and such, I just want to hack on some code, and have that days code automatically commited. I only want the files I changed to be updated though and not entire source tree, so what is the easiest way to achieve this? I am using ubuntu.

share|improve this question
up vote 0 down vote accepted

Probably run a cron job to execute a script. The script would do something like

cd /path/to/repo
git add .
git commit -am "Daily commit"
# below line is optional, needed if you want to push to remote repo
# git push master

I am not familiar with subversion, the above script will stage the updated files to your branch, commit it ( and optionally push to the remote repo (Github, perhaps ?).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.