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.
Hello,
Problem
My
.gitconfig
file is ignored. So I get this message :Solution
However, this works only for those who already have a
.gitconfig
file in their home. For me, it worked.