Tag Info

Hot answers tagged

6

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 ...


4

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 ...


4

If you just want to compute the checksum of the file you downloaded you should leave the -c out. Apologies if I didn't understand your question right. For example: $ md5sum git-manpages-1.8.4.tar.gz e3720f56e18a5ab8ee1871ac9c72ca7c git-manpages-1.8.4.tar.gz md5sum also expects 2 spaces between checksum and file name in files to be used with -c, just ...


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


1

I believe you can override the .crt file that git uses like this: $ git config --system http.sslcainfo "/etc/pki/tls/certs/ca-bundle.crt" You can disable SSL checks all together (not recommended): $ git config --system http.sslverify false


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