Sign inSign up

harpo/git

By harpo

•Updated over 7 years ago

The fast distributed version control system

Image
0

299

harpo/git repository overview

⁠Git

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals.

⁠Install

#!/bin/bash
docker pull harpo/git

⁠Requirements

This requires a directory to be available that includes your git credentials (if you intend to push or use private repos).

#!/bin/bash
mkdir -p ~/ctx/git/.ssh

⁠Launching

⁠Global configuration

To launch git in an isolated context run:

#!/bin/bash
docker run --rm -it --security-opt=no-new-privileges -e MYUID=$(id -u) -e MYGID=$(id -g) -v $PWD:/ctx -v $HOME/ctx/git:/home/isolated harpo/git "$@"
⁠Limitations

This configuration can only be used from the root of a git project. Running git from inside a subdirectory of a project will not provide the container with the required .git file.

Tag summary

Content type

Image

Digest

Size

12.3 MB

Last updated

over 7 years ago

docker pull harpo/git