This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
sitio/Git.md

30 lines
758 B
Markdown
Raw Normal View History

2021-12-21 15:28:45 +00:00
- [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)
2021-12-21 15:28:45 +00:00
2022-02-03 21:59:25 +00:00
## Diffs útiles con [delta](https://github.com/dandavison/delta)
2021-12-21 15:28:45 +00:00
2022-02-03 21:59:25 +00:00
- `apk add delta less`
2021-12-21 15:28:45 +00:00
- `~/.gitconfig`
```
2022-02-03 21:59:25 +00:00
[core]
pager = delta
2021-12-21 15:28:45 +00:00
[interactive]
2022-02-03 21:59:25 +00:00
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
2021-12-21 15:28:45 +00:00
```
2022-02-03 21:59:32 +00:00
## Encontrar que commit eliminó algo
```
git log -S <string> archivo
```
[StackOverflow](https://stackoverflow.com/a/4404551)