Skip to content

4km3/docker-alpine-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
...

Releases

No releases published

Packages

No packages published

Languages