From ea815f73b4dfc6b351c650fdbc8e035f351cbd2e Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Tue, 18 May 2021 09:48:46 +0200 Subject: [PATCH] add git aliases: change branch and track all remote branches --- dot_gitconfig.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 779f988..d61e67d 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -7,6 +7,7 @@ default = current [alias] a = add + b = "!git checkout $(git branch | fzf)" c = commit cd = checkout develop cl = clone @@ -20,5 +21,6 @@ p = push -u origin pu = pull s = status + track = "!for BRANCH in $(git branch -a | grep remotes | grep -v HEAD | grep -v master); do git branch --track \"${BRANCH#remotes/origin/}\" \"${BRANCH}\"; done" [include] path = ~/.gitconfig_custom.inc