Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_log [2019/03/07 10:08] – [Reachability] rpjday | git_log [2019/03/13 14:52] (current) – [diff-filter] rpjday | ||
|---|---|---|---|
| Line 29: | Line 29: | ||
| $ git log next topic ^master | $ git log next topic ^master | ||
| $ git log b1 b2 b3 ... ^b8 ^b9 v1.0 v2.0 ... | $ git log b1 b2 b3 ... ^b8 ^b9 v1.0 v2.0 ... | ||
| + | </ | ||
| + | |||
| + | Given this history: | ||
| + | |||
| + | < | ||
| + | o---o---o---o---o | ||
| + | | ||
| + | o---o---o---o---o | ||
| + | \ | ||
| + | o---o---o | ||
| + | </ | ||
| + | |||
| + | there is a special notation for the most common exclusion (//remember this one for rebasing// | ||
| + | |||
| + | < | ||
| + | $ git log next ^master | ||
| + | $ git log master..next | ||
| + | $ git log next..topic | ||
| + | </ | ||
| + | |||
| + | ===== Why is "git log" so slow? ===== | ||
| + | |||
| + | If you want to see the log of all changes to a single file: | ||
| + | |||
| + | < | ||
| + | $ git log --oneline -- scripts/ | ||
| + | </ | ||
| + | |||
| + | it will take a while as Git does //not// store per-file changes with the file. | ||
| + | |||
| + | ===== diff-filter ===== | ||
| + | |||
| + | Show only commits that deleted files: | ||
| + | |||
| + | < | ||
| + | $ git log --diff-filter=D --summary | ||
| </ | </ | ||