From e01fc4f8b13f2fe034257cc9da86f773ea5fa697 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Tue, 25 May 2021 13:59:28 +0200 Subject: [PATCH] add git alias --- dot_gitconfig.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 5224372..e78e593 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -7,17 +7,18 @@ default = current [alias] a = add + ahead-of-master = log --oneline origin/master..HEAD b = "!git checkout $(git branch | fzf)" c = commit cd = checkout develop cm = checkout master cp = cherry-pick f = fetch - fo = fetch origin m = merge nb = checkout -b p = push -u origin 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" + work-in-progress = rebase -i @{u} [include] path = ~/.gitconfig_custom.inc