From 0313184f29a9fcdaa67411ab9dbbeca52c1d293d Mon Sep 17 00:00:00 2001 From: haunt98 Date: Wed, 8 Jul 2020 01:11:14 +0700 Subject: [PATCH] add diff alias --- src/Applications/Essential/git.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Applications/Essential/git.md b/src/Applications/Essential/git.md index 31bfbe2..f9fde38 100644 --- a/src/Applications/Essential/git.md +++ b/src/Applications/Essential/git.md @@ -5,12 +5,15 @@ | Arch Linux | `git` | | Ubuntu | `git` | +## Config + Aliases: ```sh -git config --global alias.co checkout git config --global alias.br branch 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.logo 'log --pretty=oneline' ``` @@ -27,6 +30,8 @@ Use neovim when commit: git config --global core.editor nvim ``` +## Commands + Prefer rebase when pull: ```sh @@ -39,7 +44,7 @@ Clean outdated branches: git fetch --prune ``` -Push force safely: +Push force **safely**: ```sh git push --force-with-lease