Basic alpine image with git bash and ssh support.
Usage:
source aliases
Then use git as you normally would. But...
Ok, the difficult bit about using git in docker is access to the config files and your .ssh
directory. I've fixed that in the aliases file by using a function that reads your host's .gitconfig file and which maps your host's .ssh
directory. YMMV.
You can edit the .gitconfig
I've provided here then copy it to your home directory, or you can copy it to your home and use the commands:
git config --global user.name "{username}"
git config --global user.email "{email}"
with appropriate values in the quotes.