简体   繁体   中英

Visual Studio - Git User Information

I'm having some issue's with Visual Studio and Git. It keeps prompting me to set my user information, but when I try to do that it doesn't allow me to. Resulting in endless prompts, very annoying.

在此处输入图片说明 错误信息

Any idea on how to set these credentials in Visual Studio? As I can commit/pull/etc just fine with the terminal or Visual Studio Code. Only Visual Studio seems to be having this problem.

I use Visual Studio Online as Git provider.

Looks like Visual Studio will prompt this message as long as your git name and email are not set.
Just set them through cmd or git bash:

git config --global user.name "YOUR_NAME"
git config --global user.email "YOUR_EMAIL"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM