I'am currently converting a svn repository into a git one. As I proceed manually, I regularly change the user.name and user.email to set the author of the commit. Everything seems to work fine, but now I have to commit something from a user which has no email address. I removed email property from .gitconfig file and tried, but then in git log, email field shows user_login@user_login.(none)
. Is it possible to set no email and prevent git guessing one ?
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
Similar to neodelphi's comment, you can set this for all commits with
(You can use quotes instead of escaping.) To set this for the current project only, remove the
--global
option only. i.e.the accepted answer doesn't work on some git versions (including, but not limited to mine (@Szczepan Hołyszewski @xiaodai) )
this answer worked for me
I think that you can only do this with an explicit author specification:
You need the angle brackets so that git knows that you really are passing an empty email address.