Skip to content

Git Tips

David Kinder edited this page Jun 11, 2019 · 10 revisions

See HTML documentation build artifacts from a PR test run

The Sphinx-generated documentation from a PR test run can be found at:
https://builds.zephyrproject.org/zephyrproject-rtos/zephyr/{PULL_REQUEST}/index.html

Display Zephyr release tag dates

From within a cloned zephyr git repo on your host computer:

$ git for-each-ref --sort=taggerdate --format '%(refname) %(taggerdate)' refs/tags \
  | grep "zephyr-v"
refs/tags/zephyr-v1.0.0 Mon Feb 8 21:41:31 2016 -0500
refs/tags/zephyr-v1.1.0 Sat Mar 5 07:47:21 2016 -0500
refs/tags/zephyr-v1.2.0 Sat Apr 2 12:06:57 2016 -0400
refs/tags/zephyr-v1.3.0 Mon May 2 21:16:49 2016 -0400
refs/tags/zephyr-v1.4.0 Fri Jun 3 12:30:11 2016 -0400
refs/tags/zephyr-v1.5.0 Fri Aug 26 17:40:50 2016 -0400
refs/tags/zephyr-v1.6.0 Sat Dec 3 08:32:39 2016 -0500
refs/tags/zephyr-v1.7.0 Sat Mar 11 17:25:22 2017 +0100
refs/tags/zephyr-v1.6.1 Mon May 15 08:59:35 2017 -0400
refs/tags/zephyr-v1.7.1 Mon May 15 09:00:23 2017 -0400
refs/tags/zephyr-v1.8.0 Thu Jun 15 22:47:33 2017 -0400
refs/tags/zephyr-v1.9.0 Thu Sep 7 19:19:39 2017 -0400
refs/tags/zephyr-v1.10.0 Fri Dec 8 14:26:35 2017 -0600
refs/tags/zephyr-v1.11.0 Fri Mar 9 23:25:05 2018 +0100
refs/tags/zephyr-v1.12.0 Mon Jun 11 18:55:10 2018 +0200
refs/tags/zephyr-v1.13.0 Mon Sep 10 20:27:40 2018 -0500
refs/tags/zephyr-v1.14.0 Tue Apr 16 15:50:58 2019 -0500

Checking out a PR's commits locally

If you want to checkout the patches for a PR (or more specifically for a commit of a PR) you fetch the developer's working repo branch, something like this:

$ git fetch https://github.com/jukkar/zephyr zep-2308-net-api-doc-missing
$ git checkout -b zep-2308-net-api-doc-missing FETCH_HEAD

And when done, and you want to put things back the way they were use:

$ git checkout -f master

or if all else fails:

$ git reset --hard origin/master