0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-03-13 09:58:07 -04:00

OK, I know I said that I'd drop this for now like a thousand times

... but there was this sentence that I just read again and
it annoyed me :(
This commit is contained in:
Panagiotis "Ivory" Vasilopoulos 2024-02-11 18:29:34 +01:00 committed by Earl Warren
parent 18df26e318
commit c71eebd1da

View file

@ -53,7 +53,7 @@ git push origin HEAD:refs/for/remote-branch/local-branch \
This syntax may be a bit disorienting for users that are accustomed to commands such as `git push origin remote-branch` or `git push origin local-branch:remote-branch`.
Just like when using `git push origin remote-branch`, it is important to reiterate that supplying the local branch name is optional, as long as you checkout `local-branch` using `git checkout local-branch` beforehand and **use the `topic` push option**:
Just like when using `git push origin remote-branch`, supplying the local branch name is optional, as long as you checkout `local-branch` using `git checkout local-branch` beforehand and **use the `topic` push option**:
```shell
git checkout local-branch