add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
14
old_snippets/git-prev-commit-changes.en.md
Normal file
14
old_snippets/git-prev-commit-changes.en.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
title: "see previous commit changes"
|
||||
date: 2020-01-11T04:45:42+01:00
|
||||
draft: false
|
||||
snippet_types: ["git"]
|
||||
---
|
||||
|
||||
`git log -p -2` or `git lg -p -2`
|
||||
|
||||
Viewing previous changes was something I relied on a GUI's for, like GitLab/Source-Tree, until I found this command! The **-p** stands for **--patch** and the **-2** stands for last two commits.
|
||||
|
||||
source:
|
||||
|
||||
[git docs](https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History)
|
||||
Loading…
Add table
Add a link
Reference in a new issue