Add summaries

This commit is contained in:
2019-04-23 14:30:07 +05:30
parent 8cb1c86af6
commit 80991b5b81
5 changed files with 19 additions and 3 deletions

View File

@ -1,11 +1,13 @@
---
Title: Some git tricks
Date: 2019-04-22 17:00
Modified: 2019-04-23 14:23
Author: Fabrice
Category: cheat sheets
Tags: git, termtosvg
Slug: git-tricks
Header_Cover: images/cover_water.jpg
Summary: A compilation of some `git` tricks I keep forgetting.
---
Some [git](https://git-scm.com/) tricks I use from time to time and that I forgot everytime…
@ -29,8 +31,16 @@ If you noticed that your folder grows, you can manually cast the garbage collect
git gc --aggressive
```
To commit a small part of the file (in an interactive way):
```sh
git commit -p <file>
```
Another useful trick is `git commit -v`, it allows reviewing your changes before committing.
![Example](/examples/git-cv.svg)
A ncurse-based interface for git: [tig](https://jonas.github.io/tig/)
```sh
tig
```