Add summaries
This commit is contained in:
@ -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.
|
||||
|
||||

|
||||
|
||||
|
||||
A ncurse-based interface for git: [tig](https://jonas.github.io/tig/)
|
||||
```sh
|
||||
tig
|
||||
```
|
||||
|
Reference in New Issue
Block a user