mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-06-16 05:13:54 -07:00
Changed structure of 'Configuring Git'
This commit is contained in:
parent
341cb8d745
commit
9501efb4d1
1 changed files with 7 additions and 2 deletions
|
|
@ -10,8 +10,13 @@ Once you managed to get Git up and running, the first thing you must do before y
|
|||
```bash
|
||||
git config --global user.name 'knut'
|
||||
git config --global user.email 'knut@example.com'
|
||||
```
|
||||
The username can be anything, but it is important that the email is the same as the one you use on Codeberg. That 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:
|
||||
|
||||
```bash
|
||||
git config --global --list
|
||||
```
|
||||
The username can be anything, but it is important that the email is the same as the one you use on Codeberg. That is because the email address will later be used to assign your commits to your account.
|
||||
|
||||
> If you do not wish to include your email address with your commits, you can opt to specify `USERNAME@noreply.codeberg.org` here instead, where USERNAME is your Codeberg username
|
||||
> If you do not wish to include your email address with your commits, you can opt to specify `USERNAME@noreply.codeberg.org` here instead, where USERNAME is your Codeberg 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue