0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-24 18:09:26 -05:00

improve typo

This commit is contained in:
Panagiotis "Ivory" Vasilopoulos 2024-02-10 11:53:58 +01:00 committed by Earl Warren
parent c3ed73b805
commit 389a056329

View file

@ -12,13 +12,13 @@ Similarly to [Gerrit](https://www.gerritcodereview.com), it is possible to creat
Creating a new Pull Request can be done by pushing to the branch that you are targeting followed by a specific [refspec](https://git-scm.com/book/en/v2/Git-Internals-The-Refspec) (a location identifier known to Git).
For clarity, suppose that you cloned a repository and created a new commit on top of the `main` branch. Here is how you would create a Pull Request targeting the `main` branch:
For clarity, suppose that you cloned a repository and created a new commit on top of the `main` branch. A Pull Request targeting the `main` branch can be created like this:
```shell
git push origin HEAD:refs/for/main -o topic="topic-branch"
```
The topic branch can also be supplied directly in the `ref`:
The topic branch can also be supplied directly in the refspec:
```shell
git push origin HEAD:refs/for/main/topic-branch