Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Instructions stated "hook" not "hooks" directory. Added hint if O/S adds extension to filename

...

StepsCommandNotes
1git reset HEAD~1to undo the commit
2

from github helper page, download commit-msg,

and place it under your <repo>/.git/hook directoryhooks directory

if your O/S adds and extension to the file, remove. It must be named "commit-msg"

set the proper commit-msg hook

this will set the Change-Id properly in your commit

3Use your previous command to create the commit again
4git log --shortstatto check the existence of Change-Id

...