Configuring Git
Once you've managed to get Git up and running, the first thing you must do before you can use your fresh installation of Git is to tell Git your name and email address. You only have to do this once; this is easily done with Git Bash
:
The username can be anything, but it is important that the email is the same as the one you use on Forgejo. This is because the email address will later be used to assign your commits to your account. To verify that you've set up everything properly, run:
Tip
If you don't want to include your email address with your commits, you can opt to specify USERNAME@noreply.cei-engineering.com
here instead, where USERNAME is your Forgejo username.
If you ever want to change your name or email address, simply run the corresponding command again. You could also omit the --global
flag to set a username and email address only for the Git repository you're currently in.
Attribution
This guide is derived from the Codeberg Documentation, used under CC-BY-SA 4.0.