<commit_before>---
title: Git revisions
---

### Commits

| `dae68e1` | sha1 |
{:.shortcuts}

### References

| `HEAD` | reference |
| `master` | branch |
| `v1.0.0` | tag |
| `origin/master` | aka, *refs/remotes/origin/master* |
| `heads/master` | aka, *refs/heads/master* |
| `refs/heads/master` | ... |
{:.shortcuts}

### Searching back

| `master@{yesterday}` | also *1 day ago*, etc |
| `master@{2}` | 2nd prior value |
| `master@{push}` | where *master* would push to |
| `master^` | parent commit |
| `master^2` | 2nd parent, eg, what it merged |
| `master~5` | 5 parents back |
| `master^0` | this commit; disambiguates from tags |
| `v0.99.8^{tag}` | can be *commit*, *tag*, *tree*, *object* |
| `v0.99.8^{}` | defaults to *{tag}* |
| `:/fix bug` | searches commit messages |
{:.shortcuts}

### Other

| `HEAD:README` | ... |
| `0:README` | (0 to 3) ... |
{:.shortcuts}

## Ranges

| `master` | reachable parents from master |
| `^master` | exclude reachable parents from master |
| `master..fix` | reachable from *fix* but not *master* |
| `master...fix` | reachable from *fix* and *master*, but not both |
| `HEAD^@` | parents of *HEAD* |
| `HEAD^!` | *HEAD*, then excluding parents's ancestors |
{:.shortcuts}

### Ranges illustration

```
 F   - master
 E C - fix
 D B
 |-'
 A

master..fix   = BC
master...fix  = BC and FED
```
<commit_msg>git-revisions: trim<commit_after>---
title: Git revisions
---

### Commits

| `dae68e1` | sha1 |
{:.shortcuts}

### References

| `HEAD` | reference |
| `master` | branch |
| `v1.0.0` | tag |
| `origin/master` | aka, *refs/remotes/origin/master* |
| `heads/master` | aka, *refs/heads/master* |
{:.shortcuts}

### Searching back

| `master@{yesterday}` | also *1 day ago*, etc |
| `master@{2}` | 2nd prior value |
| `master@{push}` | where *master* would push to |
| `master^` | parent commit |
| `master^2` | 2nd parent, eg, what it merged |
| `master~5` | 5 parents back |
| `master^0` | this commit; disambiguates from tags |
| `v0.99.8^{tag}` | can be *commit*, *tag*, *tree*, *object* |
| `v0.99.8^{}` | defaults to *{tag}* |
| `:/fix bug` | searches commit messages |
{:.shortcuts}

### Other

| `HEAD:README` | ... |
| `0:README` | (0 to 3) ... |
{:.shortcuts}

## Ranges

| `master` | reachable parents from master |
| `^master` | exclude reachable parents from master |
| `master..fix` | reachable from *fix* but not *master* |
| `master...fix` | reachable from *fix* and *master*, but not both |
| `HEAD^@` | parents of *HEAD* |
| `HEAD^!` | *HEAD*, then excluding parents's ancestors |
{:.shortcuts}

### Ranges illustration

```
 F   - master
 E C - fix
 D B
 |-'
 A

master..fix   = BC
master...fix  = BC and FED
```

{'fraction_non_alphanumeric': 0.21551081282624907, 'fraction_numerical': 0.019388516032811335, 'mean_word_length': 3.464226289517471, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4962957', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1013, 'n_words': 280}