Hot answers tagged github
5
When you use the IdentityFile option in your ~/.ssh/config you point to the private, not the public, key.
From man ssh_config:
IdentityFile
Specifies a file from which the user's DSA, ECDSA or DSA authentication identity is read. The default is ~/.ssh/identity for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and ~/.ssh/id_rsa ...
3
The problem is you are trying to update from github which requires an ssh
key. Either create a dedicated ssh key without a password on your server
and add it to your github account or use the http-readonly uri to update
your repository:
git pull --mirror https://github.com/account/repository.git
2
You can do it all from your existing repository (no need to clone the fork into a new (local) repository, create your branch, copy your commits/changes, etc.).
Get your commits ready to be published.
Refine any existing local commits (e.g. with git commit --amend and/or git rebase --interactive).
Commit any of your uncommitted changes that you want to ...
1
As the links described as harish.venkat
Create a script /path_to_script, which would add new file, commit and push.
#!/bin/sh
cd /location/of/clone
git add *
if [[ $? != 0 ]] then
mail -s "add failed" someone@some.com
exit 1
fi
git commit -a -m "commit message, to avoid being prompted interactively"
if [[ $? != 0 ]] then
mail -s "commit ...
1
I was able to figure out what the problem was;
I found, that the github repo is actually on 207.97.227.239, therefor my subnetmask was wrong. Changed the routing rule to 207.97.227.0/24, and the traffic started routing, but still failed. I additionally had the problem, that my lease of the dhcp on my wireless was outdated and the gateway had changed.. so a ...
1
# Find the URL of the .deb file
url=$(wget -O- -q --no-check-certificate https://github.com/elbersb/otr-verwaltung/downloads |
sed -ne 's/^.*"\([^"]*otrverwaltung_[^"]*_all\.deb\)".*/\1/p')
case $url in
http://*|https://*) :;;
/*) url=https://github.com$url;;
*) url=https://github.com/elbersb/otr-verwaltung/$url;;
esac
# Create a temporary ...
Only top voted, non community-wiki answers of a minimum length are eligible