Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commit all is greyed out in Team Explorer in VS 2015

I created a project CmsShoppingCart in MS VS 2015 and created a local repository. But when I want to add commit for the first time, I found the Commit All button is greyed out all showed in the pictures below.

Is any suggestion to such an issue? Thank you very much. Also, this is the first time I am using Team Explorer.

Setting for local repository: Setting for local repository

Commit All button greyed out: Commit All button greyed out

like image 666
Amy Zeng Avatar asked Nov 24 '25 23:11

Amy Zeng


2 Answers

In my case (Visual Studio 2022) it was all I needed to correct my email address in menu > Git > Settings > Git Repository Settings > Email same as in menu > Settings > Git Global Settings and the problem was resolved.

enter image description here

like image 125
Shafiq-Ur-Rehman Avatar answered Nov 26 '25 14:11

Shafiq-Ur-Rehman


In my case i had to run Run

git config --global user.email "[email protected]" and git config --global user.name "My Name"

like image 40
Olawale david Avatar answered Nov 26 '25 14:11

Olawale david