GIT-config——全局user.name
我在一个项目中使用git,每次我想在终端中提交一些东西时,我都必须输入以下命令行:GIT-config——全局user.name,git,logging,configuration,terminal,config,Git,Logging,Configuration,Terminal,Config,我在一个项目中使用git,每次我想在终端中提交一些东西时,我都必须输入以下命令行: git config --global user.name "myusername" 我刚换了电脑,不必在以前的笔记本电脑上这样做。有没有办法跳过这个阶段 非常感谢 使用 git config --global -e 如果还不存在,请添加以下部分: [user] name = Your Name email = your.email@example.com 如果您将其设置为全局设置,则每个设
git config --global user.name "myusername"
我刚换了电脑,不必在以前的笔记本电脑上这样做。有没有办法跳过这个阶段
非常感谢 使用
git config --global -e
如果还不存在,请添加以下部分:
[user]
name = Your Name
email = your.email@example.com
如果您将其设置为全局设置,则每个设置只需执行一次,看起来您就是这样。如果在提交之前没有设置,会出现什么错误?