Please tell me who you are问题解决
在使用git远程连接储存库时,需要使用git remote add origin https://github.com/LiXiu1363195872/git-init.git命令,这时可能会遇到以下问题:
PS F:\HB\Vue.js\day07\learnVuejs07\supermall1> git commit -m “first commit”
Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email “you@example.com”
git config --global user.name “Your Name”
to set your account’s default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got ‘Administrator@DWEIK57SRK47QQX.(none)’)
解决这个问题需要设置账户的默认标识,只需要在命令行中使用以下命令:
git config --global user.email "邮箱"
git config --global user.name "昵称"
之后即可继续连接自己的远程储存库的步骤