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

View file

@ -12,7 +12,7 @@ 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). 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 you can 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. Here is how you would create a Pull Request targeting the `main` branch:
```shell ```shell
git push origin HEAD:refs/for/main -o topic="topic-branch" git push origin HEAD:refs/for/main -o topic="topic-branch"