add diff alias

main
haunt98 2020-07-08 01:11:14 +07:00
parent fc4141b708
commit 0313184f29
1 changed files with 7 additions and 2 deletions

View File

@ -5,12 +5,15 @@
| Arch Linux | `git` | | Arch Linux | `git` |
| Ubuntu | `git` | | Ubuntu | `git` |
## Config
Aliases: Aliases:
```sh ```sh
git config --global alias.co checkout
git config --global alias.br branch git config --global alias.br branch
git config --global alias.ci commit git config --global alias.ci commit
git config --global alias.co checkout
git config --global alias.df diff
git config --global alias.st status git config --global alias.st status
git config --global alias.logo 'log --pretty=oneline' git config --global alias.logo 'log --pretty=oneline'
``` ```
@ -27,6 +30,8 @@ Use neovim when commit:
git config --global core.editor nvim git config --global core.editor nvim
``` ```
## Commands
Prefer rebase when pull: Prefer rebase when pull:
```sh ```sh
@ -39,7 +44,7 @@ Clean outdated branches:
git fetch --prune git fetch --prune
``` ```
Push force safely: Push force **safely**:
```sh ```sh
git push --force-with-lease git push --force-with-lease