extrawurst / gitui

Blazing 💥 fast terminal-ui for git written in rust 🦀
MIT License
18.47k stars 569 forks source link

git error:config value 'user.name' was not found; class=Config (7); code=NotFound (-3) #2397

Open Zamy846692 opened 2 days ago

Zamy846692 commented 2 days ago

Just installed this from MSYS2 on Windows 10. The error commit error: git error:config value 'user.name' was not found; class=Config (7); code=NotFound (-3) happens when I Do Commit for the first time. I suppose that I am supposed to set user.name, but am unsure where or how that happens.

Steps to reproduce the behavior:

  1. Move file to Staged Changes by pressing enter.
  2. Press C to commit.
  3. Type commit message.
  4. See error.

I assume that there is supposed to be a notification that the Commit worked? as you can guess - that didn't happen.

Context: Windows 10 Home, Version: 22H2. gitui nightly 2024-06-03 (95e1d4d) Installed by MSYS2 Pacman.

I am completely new to this program and do not have the default Git installed on my PC.

extrawurst commented 2 days ago

see https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git

Zamy846692 commented 15 hours ago

Ok, after installing Git with MSYS2 Pacman I was able to follow the instructions and set both my username and email, it worked after that. But now when I try to push it, an error comes up saying:

push failed:
git error:the SSL certificate is invalid; class=Ssl (16); code=Certificate (-17)

The previous problem seems fixed, but any idea about this?