美文网首页程序员
source tree 使用遇到的问题

source tree 使用遇到的问题

作者: 咬了一口的苹果灬 | 来源:发表于2017-11-06 17:29 被阅读106次

1.一定要装git客户端才行,不然克隆远程url会一直提示 “这是一个无效的源路径/URL”(本人已经掉坑里一次了,希望读者不要再犯这么简单的错误)。就是在网上下载一个git客户端并安装,然后工具 ——》选项 ——》 git, 启用git 并选择使用系统安装的git。
2.提交代码到远程的时候报错,提示如下:

git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\AppData\Local\Temp\yo1s42oy.fz2

*** 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 ‘Colin@JustForMoney.(none)‘)

原因:没有设置用户名和邮箱

 git config --global user.email "you@example.com"
 
 git config --global user.name "Your Name"

相关文章

网友评论

    本文标题:source tree 使用遇到的问题

    本文链接:https://www.haomeiwen.com/subject/vqnlmxtx.html