Peter Rehm's Blog

apple,development,life & more

Remote notes to git commits

Ohne Kommentare

Wit git notes you have an easy option of adding notes to commits. This is e.g. useful to
attach the github discussion to a commit.

Unfortunately the workflow to achieve this is slightly more complicated than just adding
commits. You can get your stuff done with the following commands.

CODE:
git remote update 
git checkout <sha>
git notes --ref=github-comments add -m <content> <sha>
git push <remote> refs/notes/github-comments


I recommend to have a different refs for different notes types to not have any conflicts.

You can read more about git notes here.

Geschrieben von Peter Rehm

30.01.2014 um 09:23:25

Tags für diesen Artikel: ,