get:referencing_commits
This is an old revision of the document!
concept : tree-ish
Désign un élément qui réfère à un élément d'un arbre (repo/staging index/working directory), ici une référence à un commit :
- <SHA> complet ou partiel (mais mini 4 caractères, et non-ambigu (pour éviter les coliisions)
- pointeur HEAD
- branch reference (master^), tag reference (concept non couvert par la formation)
- ancestry
Le marquer ^ permet de cibler le parent d'un tree-ish, ex : HEAD^ point le parent du commit pointé par le HEAD. HEAD^^ le grand parent, etc.
get/referencing_commits.1447087822.txt.gz · Last modified: 2015/11/09 17:50 by leo