Git Tips

David Kinder edited this page Nov 15, 2017 · 9 revisions

See HTML documentation build artifacts from a PR test run

(This feature has been temporarily disabled)

The Sphinx-generated documentation from a PR test run can be found at:
http://zephyr-logs.s3-website-us-east-1.amazonaws.com/pull-requests/zephyrproject-rtos/zephyr/{PULL_REQUEST}/doc/

and the Doxygen-generated API documentation can be found at:
http://zephyr-logs.s3-website-us-east-1.amazonaws.com/pull-requests/zephyrproject-rtos/zephyr/{PULL_REQUEST}/api/

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

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.