Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 多个用户从同一目录提交更改_Git_Github - Fatal编程技术网

Git 多个用户从同一目录提交更改

Git 多个用户从同一目录提交更改,git,github,Git,Github,至少有两个用户在Linux服务器上的同一目录上工作。我们每个人都需要将更改提交并推送到repo,这些更改需要在Github中正确识别 如何配置:git config user.name或user.email以允许多个用户正确编写其更改?您可以使用--author选项为每个提交指定作者 git commit --author="yourname <foo@example.com>" git提交--author=“yourname”

至少有两个用户在Linux服务器上的同一目录上工作。我们每个人都需要将更改提交并推送到repo,这些更改需要在Github中正确识别


如何配置:
git config user.name
user.email
以允许多个用户正确编写其更改?

您可以使用--author选项为每个提交指定作者

git commit --author="yourname <foo@example.com>"
git提交--author=“yourname”