agit: Fix description of git push example (#1083)

The shown command uses HEAD, so it will push the currently checked out
branch. Other non-HEAD examples will be shown further below.

Reviewed-on: https://codeberg.org/forgejo/docs/pulls/1083
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Panagiotis "Ivory" Vasilopoulos <n0toose@noreply.codeberg.org>
Co-authored-by: Rainer Müller <raimue@codingfarm.de>
Co-committed-by: Rainer Müller <raimue@codingfarm.de>
This commit is contained in:
Rainer Müller 2025-02-14 19:09:13 +00:00 committed by 0ko
parent 548c2a7121
commit 33fbb1eb7a

View file

@ -26,7 +26,7 @@ git push origin HEAD:refs/for/main -o topic="agit-typo-fixes"
The topic will be visible in the Pull Request and it will be used to associate further commits to the same Pull Request. Under the hood, it is essentially just a branch. The topic will be visible in the Pull Request and it will be used to associate further commits to the same Pull Request. Under the hood, it is essentially just a branch.
It can also be supplied directly using the `<session>` parameter in the **Refspec**, which will set the topic as `topic-branch` **and** push the **local branch** `topic-branch` instead: It can also be supplied directly using the `<session>` parameter in the **Refspec**, which will set the topic as `topic-branch` and push the **currently checked out branch**:
```shell ```shell
# topic-branch is the session parameter and the topic # topic-branch is the session parameter and the topic