git – Commit taking forever in Visual Studio Code
I’m learning how to use Source Control in Visual Studio (VS) Code. When trying to ‘commit’ files the process just loads and loads but never completes. Please see below:
These are the steps I followed:
1. I installed “Git”
2. Created a repository for my files and then put some random files in there
3. Opened VS and opened my repository folder
4. Navigated to “Source Control”
5. Staged my documents (I didn’t actually make any changes to the files but I just wanted to test it out since it’s my first time using the tool).
6. Clicked “Commit”
7. When I clicked commit I got an error which read:
"Make sure you configure your 'user.name' and 'user.email' in git."
I found this link on Stackoverflow: “Make sure you configure your ‘user.email’ and ‘user.name’ in git” when trying to push to git lab
8. Using the link above, I opened the terminal and typed:
git config --global user.name "My name"
git config --global user.email "myemail"
Please see the image below:
9. I then clicked ‘Commit’, it began running but it just loaded indefinitely and never completed.
Does anyone know how I can fix this problem?.
I really tried to find a solution online. People suggested updating Visual Studio Code, fortunately mine is already up to date.
Read more here: Source link