diff --git a/content/getting-started/first-repository.md b/content/getting-started/first-repository.md index fc23cc8..5bf8afe 100644 --- a/content/getting-started/first-repository.md +++ b/content/getting-started/first-repository.md @@ -366,7 +366,8 @@ The `-u` option sets the upstream remote, which we want to be Codeberg.org, as c The `main` argument sets the name of the branch onto which shall be pushed upstream. For this example, it should be the same branch name that you specified when creating the repository. -When connecting via HTTPS, Git will ask you for your username and password, which you can enter interactively. +When connecting via HTTPS, Git will ask you for your username and password. +If you have enabled Two-Factor Authentication, use your generated [access token](/advanced/access-token/) as the password instead. After refreshing the repository page, you should now see something similar to this: diff --git a/content/git/clone-commit-via-cli.md b/content/git/clone-commit-via-cli.md index 3825b54..deb60b5 100644 --- a/content/git/clone-commit-via-cli.md +++ b/content/git/clone-commit-via-cli.md @@ -92,8 +92,9 @@ Here's an explanation of the command flags used here: The last step is to synchronize (_push_) the commit from the local repository to the remote one on Codeberg. -If you are using HTTPS, you will be asked for your Codeberg username and password. If you want to avoid entering your -password every time, consider [using SSH](/security/ssh-key) instead. +If you are using HTTPS, you will be asked for your Codeberg username and password. +If you have enabled Two-Factor Authentication, use your generated [access token](/advanced/access-token/) as the password instead. +If you want to avoid entering your password every time, consider [using SSH](/security/ssh-key) instead. ```shell ~/examples$ git push