Git “git config --global user.name” why does this option exist?
问题 Git Beginner Alert! I have a basic question as to WHY does GIT allow one to change the user name as a config option git config --global user.name trojan Doesn't this option up the gate for committers to impersonate and create confusion in the history/logs? Why isn't it as simple as take the username from the credentials that are used to connect with GIT? 回答1: As Greg notes in a comment, that can only work in a pure-push workflow. There are many others, including pure-pull, email, git bundle ,