Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drnic/eycloud_git_ssh
https://github.com/drnic/eycloud_git_ssh
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/drnic/eycloud_git_ssh
- Owner: drnic
- Created: 2011-12-28T13:50:35.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-28T13:51:25.000Z (about 13 years ago)
- Last Synced: 2023-04-10T17:09:47.580Z (over 1 year ago)
- Language: Ruby
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generate git command with specific identity
STATUS: Not yet tested; only an idea drafted on a train.
By default, `git` uses the local environments `ssh` for its `git@...` remote system access. If you want to override the credentials/identity being used then it requires you to setup a bunch of intermediate files.
This recipe generates a wrapper `git` command that uses an alternate IdentityFile.
## Usage
ey-recipes clone git://github.com/drnic/eycloud_git_ssh.git -n git_ssh
## Generated files
Assuming the owner user is 'deploy', the following files are created:
/home/deploy/bin/git
/home/deploy/bin/git-ssh
/home/deploy/config/git-ssh-configIt assumes there is a private key pair ~/.ssh/git-key & ~/.ssh/git-key.pub
If you set `git_ssh_name` (defaults to "git") to "mygit", the following files are created:
/home/deploy/bin/mygit
/home/deploy/bin/mygit-ssh
/home/deploy/config/mygit-ssh-configIt assumes there is a private key pair ~/.ssh/git-key & ~/.ssh/git-key.pub