From 453c272acf56dcd53672685e11d4c99c1542a775 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Mon, 23 Sep 2024 08:16:57 +0200 Subject: [PATCH] chore(git): add aliases --- gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitconfig b/gitconfig index 86ed134..c81ed05 100644 --- a/gitconfig +++ b/gitconfig @@ -23,6 +23,8 @@ cltms = !sh -c 'cd $HOME/dev && git clone $1 && cd $(basename $1 .git) && tmuxsess' -- co = checkout cols = !git checkout $(git branch | fzf) + comb = !git checkout $(git mainbranch) + cost = checkout staging cp = cherry-pick cp2 = "!fn() { git cherry-pick $1~2..$1; }; fn" cp3 = "!fn() { git cherry-pick $1~3..$1; }; fn"