git - 在 sourcetree,Git 窗口客户端中提交存储库时出错

标签 git bitbucket atlassian-sourcetree

我是 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 中设置它:-

  1. 转到菜单:工具 -> 选项
  2. 在常规选项卡上填写全名和电子邮件地址字段
  3. 点击确定按钮
  4. 提交你的文件:)

关于git - 在 sourcetree,Git 窗口客户端中提交存储库时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21487091/

相关文章:

git:重新定位时冲突提交去了哪里

Git:在 "git rm"之后推送更改

git - Bitbucket:使用 Mac OSX 将本地构建的项目添加到 bitbucket

bitbucket - 克隆到基本目录 git@bitbucket.org :myapp/configurations. git 发送 channel 请求失败

windows - SourceTree 自定义操作不起作用,但通过 Git 终端窗口起作用

git - 如何在开发 Git 存储库中保留 Heroku 的部署存储库并将它们分开?

git - 为 GIT 标签设置特定日期

linux - 如何在我的家庭网络上访问 git 存储库?

git - SourceTree 中的差异工具

atlassian-sourcetree - 在 SourceTree 中显示 GitHub 帐户的头像