我是 bitbucket、git 和 sourcetree 的新手。我在 bitbucket 上创建了一个存储库,然后我为 win 7 安装了 sourcetree 客户端,然后我用我的本地桌面文件夹克隆了该存储库,然后我在本地文件夹中放置了一个文件,现在当我尝试提交更改时,sourcetree 给我以下错误。
git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\shahjahan_khokher\AppData\Local\Temp\vrkvrvyu.uba
* 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 'shahjahan_khokher@shahjahan_khokh.(none)')
Completed with errors, see above.
我怎样才能解决这个问题并成功提交和推送。
最佳答案
在不使用 Git Bash 的情况下解决身份问题的最简单方法是直接在 SourceTree 中设置它:-
- 转到菜单:工具 -> 选项
- 在常规选项卡上填写全名和电子邮件地址字段
- 点击确定按钮
- 提交你的文件:)
关于git - 在 sourcetree,Git 窗口客户端中提交存储库时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21487091/