Handling either *.name or *.username in gitconfig #190
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There might be a better way of handling this or even just switching to using
git config user.name
rather thenuser.username
might help avoid trouble for users who have already setup git using official git or github documentation. Both of which seem to recommenduser.name
overuser.username
. If there is some reason behinduser.username
being the better option, I'd love to learn more about the topic.What got me to digging was I ran into the issue myself and started looking at the git docs and others .gitconfig files. The only thing I'm not 100% sure about is rather this would be a no go on a none POSIX systems. (no windows machine to test on, but works like a charm on OSX and Linux)
Thanks and great work on helping newbies level up we appreciate it!