From ff7c07fb0884387619cfffd7ef1ee843280856cc Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 27 Oct 2021 10:54:24 +0100 Subject: [PATCH] docs: Simplify git instructions in HACKING slightly --- docs/HACKING.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/HACKING.md b/docs/HACKING.md index c769112956..40ed8b0b4f 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -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 # 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 # where REMOTE is your "fork" on GitHub ``` And after that, head over to your repo on GitHub and click "Compare & pull request"