]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: Simplify git instructions in HACKING slightly
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Oct 2021 09:54:24 +0000 (10:54 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Oct 2021 10:10:52 +0000 (11:10 +0100)
docs/HACKING.md

index c76911295690c22695672772fc5088226162bffe..40ed8b0b4f70bdea7290df3bb127f1cf0c798a8e 100644 (file)
@@ -87,6 +87,7 @@ $ sudo dnf builddep systemd               # install build dependencies
 $ sudo dnf install mkosi                  # install tool to quickly build images
 $ git clone https://github.com/systemd/systemd.git
 $ cd systemd
+$ git checkout -b <BRANCH>                # where BRANCH is the name of the branch
 $ vim src/core/main.c                     # or wherever you'd like to make your changes
 $ meson build                             # configure the build
 $ meson compile -C build                  # build it locally, see if everything compiles fine
@@ -96,9 +97,7 @@ $ sudo mkosi                              # build a test image
 $ sudo mkosi boot                         # boot up the test image
 $ git add -p                              # interactively put together your patch
 $ git commit                              # commit it
-$ git push REMOTE HEAD:refs/heads/BRANCH
-                                          # where REMOTE is your "fork" on GitHub
-                                          # and BRANCH is a branch name.
+$ git push -u <REMOTE>                    # where REMOTE is your "fork" on GitHub
 ```
 
 And after that, head over to your repo on GitHub and click "Compare & pull request"