36 lines
809 B
Markdown
36 lines
809 B
Markdown
- [Git es difícil](https://mastodon.sdf.org/@khm/107301080271400610)
|
|
- ["¿Como puedo confiar en esta repo de Git?"](https://anarc.at/blog/2020-03-17-git-gpg-verification/) de Anarcat (en inglés)
|
|
|
|
## Diffs útiles con [delta](https://github.com/dandavison/delta)
|
|
|
|
- `apk add delta less`
|
|
- `~/.gitconfig`
|
|
|
|
```
|
|
[core]
|
|
pager = delta
|
|
[interactive]
|
|
diffFilter = delta --color-only
|
|
[delta]
|
|
light = true # Cambiar a dark si se usa tema oscuro
|
|
navigate = true # use n and N to move between diff sections
|
|
[merge]
|
|
conflictstyle = diff3
|
|
[diff]
|
|
colorMoved = default
|
|
```
|
|
|
|
## Encontrar que commit eliminó algo
|
|
|
|
```
|
|
git log -S <string> archivo
|
|
```
|
|
|
|
[StackOverflow](https://stackoverflow.com/a/4404551)
|
|
|
|
## Borrar archivos sin trackear
|
|
|
|
```
|
|
git clean
|
|
```
|