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


5

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


3

git repositories contain all branches (but compressed and only differences hence rarely a size issue). Therefore, you can clone the entire project as you have done successfully. This is a standard way to get a repository, even if you are only interest in one branch. The .git structure will then include all the branches done on that repository. To use a ...


3

All of them rely on ssh to authenticate the user, then something else for authorization. Gitosis and Gitolite both use a config file; Gitorious uses (I think) a database (although, it may be generating a config file anytime project permissions change; not sure).


2

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


2

Like the error message tells you, git clone expects a git repository. You can't "add" the name of a branch in the path like that. See branches in git. You can clone a single branch (and it's history) : git clone <url> --branch <branch> --single-branch See git help clone. But the clone command you ran gave you a copy of the whole repository, ...


2

Auth with username and password is supported by github api: There are three ways to authenticate through GitHub API v3. ... Basic Authentication $ curl -u "username" https://api.github.com ... So just choose a lib in the language you prefer and use the implemented version of the Create a Public Key "Public Key" API Section: Creates a ...


2

I would simply run the git clone as you've described and then delete the .git directories that are dispersed throughout the cloned directory. $ find puppet-heat/ -name '.git' -exec rm -fr {} +


2

You don't have to copy your ssh key if you don't like, You can forward your local one with -A -A Enables forwarding of the authentication agent connection. This can also be specified on a per-host basis in a configuration file. Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote ...


1

If I'am not mistake you mean this repo. Try to get URL form Releases. This case work for me: $ wget https://github.com/SpiderLabs/ModSecurity/archive/v2.8.0.tar.gz P.S.: I also have the same error message when try to run your case; $ wget https://github.com/downloads/SpiderLabs/ModSecurity/modsecurity-apache_2.7.1.tar.gz


1

To answer your question: If I'm to create a git user wich will be the owner of the main repos and also in charge of doing the commits, how do I prevent a developer from pushing a bad code? The answer is not to create a git user. You can control access permissions to the remote repository with standard UNIX users and groups. Since git pushes work ...


1

This command should work: $ git fetch origin [branch] The above command only fetches metadata from remote repository, it not does merge sources. If you want to fetch and merge the sources, the command would be: $ git pull origin [branch] Be careful with the branch where you are executing merge command. It will be where the sources are merged.


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