mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-06-16 05:13:54 -07:00
# Changelog The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## Changed - Update line length limit from 500 characters to 120 characters. ## Fixed - Most instances of these lint issues: 1. Lines longer than 120 characters ([MD013](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md013.md)). 2. Trailing whitespaces ([MD009](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md009.md)). 3. Ordered list item prefix ([MD029](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md029.md)). 4. Bare links ([MD034](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md034.md)). Co-authored-by: Patrick Schratz <pat-s@noreply.codeberg.org> Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/623 Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org> Co-authored-by: Javier Pérez <walpo@noreply.codeberg.org> Co-committed-by: Javier Pérez <walpo@noreply.codeberg.org>
33 lines
1.1 KiB
Markdown
33 lines
1.1 KiB
Markdown
---
|
|
eleventyNavigation:
|
|
key: ConfiguringGit
|
|
title: Configuring Git
|
|
parent: 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:
|
|
|
|
```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.
|
|
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:
|
|
|
|
```bash
|
|
git config --global --list
|
|
```
|
|
|
|
{% admonition "tip" %}
|
|
|
|
If you don't want 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.
|
|
|
|
{% endadmonition %}
|
|
|
|
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.
|