簡體   English   中英

sublime text 2 - git 插件

[英]sublime text 2 - git plugin

我在 Windows 7 上購買並安裝了 Sublime text 2 我還安裝了 Git 插件

現在,我向暫存索引添加了一個文件,它起作用了……git status 也起作用了……另一方面,git commit 不起作用:

這就是我得到的:

*** 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 'me@me-PC.(none)')

我不知道如何解決這個問題。

謝謝,稀有

您可以在 git-cmd 會話或 git bash 會話中鍵入這些命令。

Git 需要知道作者和提交者的姓名和電子郵件。

kemayo/sublime-text-git問題 246 中所述

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

如果你已經安裝了 msysgit,你會發現一個 git-cmd.bat 或者一個 git bash 會話的快捷方式,你可以在其中輸入那些git config命令。

但是,您還需要確保 Git 插件知道您的HOME位置,Windows 默認情況下未設置HOME

你把你的電子郵件設置為什么?

致命:無法自動檢測電子郵件地址(得到 'me@me-PC.(none)')

根據錯誤消息,電子郵件是; me@me-PC。 從它的外觀來看,sublime 插件在解析無效電子郵件時存在問題。

仔細檢查您的電子郵件:

git config -l 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM