We start by creating a local branch, notesMessage, tracking origin/stable-3.2. Then, we will try and change the commit message and see that the commit hash changes:
- Checkout the branch notesMessage tracking origin/stable-3.2:
$ git checkout -b notesMessage --track origin/stable-3.2 Branch notesMessage set up to track remote branch stable-3.2 from origin. Switched to a new branch 'notesMessage'
- List the commit hash of the HEAD of your branch:
$ git log -1 commit f839d383e6fbbda26729db7fd57fc917fa47db44 Author: Matthias Sohn <matthias.sohn@sap.com> Date: Wed Dec 18 21:16:13 2013 +0100 Prepare post 3.2.0 builds Change-Id: Ie2bfdee0c492e3d61d92acb04c5bef641f5f132f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>