https://github.com/frozzare/docker-git
Docker image with git and openssh
https://github.com/frozzare/docker-git
docker docker-image git
Last synced: about 2 months ago
JSON representation
Docker image with git and openssh
- Host: GitHub
- URL: https://github.com/frozzare/docker-git
- Owner: frozzare
- License: mit
- Created: 2017-11-22T17:22:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-26T14:20:20.000Z (almost 8 years ago)
- Last Synced: 2025-11-05T02:30:05.262Z (8 months ago)
- Topics: docker, docker-image, git
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# docker-git
Simple docker container to solve issue when you have multiple ssh keys with different git accounts. The image scans the GitHub, GitLab and Bitbucket with `ssh-keyscan` so you don't have to do it.
## Usage
Create a alias so you can use git2 everywhere.
```
alias git2="docker run --rm -v ~/.ssh/id_rsa:/root/.ssh/id_rsa -v ~/.gitconfig:/root/.gitconfig -v $(pwd):/opt frozzare/git"
git2 clone git@github.com:frozzare/docker-git.git
```
## License
MIT © [Fredrik Forsmo](https://github.com/frozzare)