docker run alpine/git -> push?
cpolzer opened this issue · 1 comments
cpolzer commented
Hello,
sorry for the question about usage of this docker image.
How would one issue a "git push" ?
docker run -v {pwd}:/root alpine/git:latest push --dry-run
Fails with error "fatal: not a git repository (or any parent up to mount point /)"
I would be happy to issue a pr and adding this to the readme/docs
Thanks in advance
ozbillwang commented
I guess you should set the workdir with run command
docker run -v {pwd}:/root -w /root alpine/git:latest push --dry-run