Easy to use
Add these aliases in your ~/.bash_profile file:
alias git="docker run -it --rm -v \"$PWD\":/app -v ~/.ssh:/root/.ssh xherriot/git:latest git"
alias git-enter="docker run -it --rm -v \"$PWD\":/app -v ~/.ssh:/root/.ssh xherriot/git:latest bash"
Use git as usual in your terminal. Or inside the container, use git with an improved terminal: • Output colored (git status) • Autocomplete branch name • Add git branch on the bash command prompt
Content type
Image
Digest
sha256:7c19a7327…
Size
91.5 MB
Last updated
almost 11 years ago
docker pull xherriot/git