1
vote
1answer
66 views

How do I make git fetch ignore my private key?

I'm writing a cronjob that will git fetch. I have a private key that I often use for authenticated git things (like github) which has a passphrase on it, but this specific git fetch doesn't need the ...
0
votes
1answer
75 views

Automated git push attempt does not work - authentication issue

I'm trying to automate a very periodic git add/commit/push cycle using a shell script and cron under OS X 10.8.5. The script is as basic as one would expect it to be: cd /my/directory git add . git ...
0
votes
3answers
1k views

How to auto commit to my git repository using cron?

I look into a lot of answers about this subject, but something is wrong here, let me explain. I create this script, to make my cron cleaner :) #!/bin/bash cd ...
2
votes
2answers
173 views

Working with git via crontab

I have the following shell script #!/bin/bash REPODIR=$HOME/work/repository/ cd $REPODIR var=`git fetch --dry-run 2>&1` echo $var > $HOME/error.txt I want to run my script every minute, ...
1
vote
1answer
490 views

git push to github via cron on mac

I'm trying to use git push in a bash script being run by crontab to push a commit to github. At the end of the script I'm doing this: # script processes some files, then: git add -A git commit -a -m ...
2
votes
2answers
163 views

Automatically commit a file to git

Is there a way to easily commit a file to git if it has updated? I want to take a list of files in a directory, write it to a text file, and commit it to git if it's changed. I assume this would ...
2
votes
1answer
375 views

Scheduled Push Changes To Local Git Repository (Ubuntu)

Boring Background - Summary: I know we're not using GIT properly!. This started as a small hobby project and has spiralled - my company uses Git to track/manage changes to a bespoke web-based software ...
4
votes
2answers
1k views

How do I create a cron job that will commit my project changes to git on a weekly basis

I'm using git for the purposes of making a historical transcript of the changes made to my project. I understand it's not the ideal usage but it's the usage pattern I've chosen for various reasons ...
1
vote
1answer
285 views

Running git-svn with cron results in garbage in .git

I've setup a git-svn repo with cron to fetch from the svn repo daily. I have a script to do the fetching, and this is what is invoked by cron. Everything is fine with the repo, and the script works ...