An open API service indexing awesome lists of open source software.

https://github.com/foriequal0/git-sshkey

git with ssh-key
https://github.com/foriequal0/git-sshkey

Last synced: about 2 months ago
JSON representation

git with ssh-key

Awesome Lists containing this project

README

        

git-sshkey
==========

Handy addon to handle per-repository ssh-key.

## How to use
Download script
```
wget https://raw.githubusercontent.com/foriequal0/git-sshkey/master/git-sshkey.sh -O ~/bin/git-sshkey
chmod +x ~/bin/git-sshkey
```

Create your ssh key to .git/somewhere/
```
ssh-keygen -t rsa -f .git/somewhere/id_rsa_my_per_repository_key
```

Set per-repository ssh key
```
git config user.pkey "somewhere/id_rsa_my_per_repository_key"
```

Set origin to ssh url
```
git remote set-url ssh://[email protected]:account/my-proj.git
```

Use
```
git sshkey push
git sshkey pull
```

## Disclaimer

Tested with git 1.7.1, CentOS 6.6