mirror of
https://codeberg.org/forgejo/docs.git
synced 2025-04-26 13:40:30 +03:00
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:
parent
548c2a7121
commit
33fbb1eb7a
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
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
|
||||
# topic-branch is the session parameter and the topic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue