2015-10-22 09:31:52 +02:00
|
|
|
# git log
|
2014-03-09 13:20:13 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Show a history of commits.
|
2014-03-09 13:20:13 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Show a history of commits:
|
2014-03-09 13:20:13 +01:00
|
|
|
|
2014-03-31 14:08:45 +02:00
|
|
|
`git log`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Show the history of a particular file or directory, including differences:
|
2014-03-31 14:08:45 +02:00
|
|
|
|
2015-10-12 16:23:23 +02:00
|
|
|
`git log -p {{path}}`
|
2015-10-09 22:00:28 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Show only the first line of each commits:
|
2015-10-09 22:00:28 +02:00
|
|
|
|
|
|
|
`git log --oneline`
|