From 1308c301a32e2c29f5e724e6d51d71a1efa9ab72 Mon Sep 17 00:00:00 2001 From: hau Date: Fri, 27 Nov 2020 11:00:02 +0700 Subject: [PATCH] more git config --- Applications/Essential/git.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Applications/Essential/git.md b/Applications/Essential/git.md index ff33651..26e6083 100644 --- a/Applications/Essential/git.md +++ b/Applications/Essential/git.md @@ -19,6 +19,24 @@ Use nice editor when commit: git config --global core.editor ``` +Always pull rebase: + +```sh +git config --global pull.rebase true +``` + +Set default branch to `main`: + +```sh +git config --global init.defaultBranch main +``` + +Always fetch/pull prune: + +```sh +git config --global fetch.prune true +``` + ## Commands Prefer rebase when pull: