Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 561 Bytes

README.md

File metadata and controls

31 lines (28 loc) · 561 Bytes

git

Run git

Building

$ docker build -t 4km3/git .

Configuration

Default values

: "${GIT_WORK_TREE:=/workdir}"
: "${GIT_DIR:=/workdir/.git}"

Sample usage

Go to the git repo working dir, then run the container like this:

$ docker run                    \
        -it                     \
        --rm                    \
        -v $PWD:/workdir        \
        4km3/git status

For your convenience, a bash function named 'git' is provided in git.bash:

$ . git.bash
$ git status
...