Adding ssh key to git
Author
Anjani Phuyal
Date
May 25, 2014
Category
Git
Read Time
2 min read
ssh://[email protected]/username/repo.git And NOT the https or git one:
https://github.com/username/repo.git
git://github.com/username/repo.gitref: http://stackoverflow.com/questions/7773181/git-keeps-prompting-me-for-password
Git auto commit as cron task
#!/bin/bash
cd /usr/local/nagios/etc
/usr/bin/git add -A
/usr/bin/git commit -am "update `date`"
/usr/bin/git push origin master#Git#SSH