alpine-docker / git

A useful simple git container running in alpine linux, especially for tiny linux distro, such as RancherOS, which don't have package manager.
Apache License 2.0
155 stars 86 forks source link

.gitconfig is ignored #4

Closed ymettier closed 7 years ago

ymettier commented 7 years ago

Hello,

Problem

My .gitconfig file is ignored. So I get this message :

$ git commit -m "my message"            

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got XXXXX)

Solution

alias git=docker run ... -v ~/.gitconfig:/root/.gitconfig ...

However, this works only for those who already have a .gitconfig file in their home. For me, it worked.

ozbillwang commented 7 years ago

Thanks to report this issue, I updated the README