Skip to content

Commit c31a88d

Browse files
git: Add alias for git checkout with fzf
1 parent 639dc61 commit c31a88d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git/config-global/config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
[commit]
2020
gpgsign = true
2121
[alias]
22+
co = "!git checkout $(git branch | fzf | tr -d '[:space:]')"
2223
b = branch --all
2324
ss = status -b --short
2425
sl = status --long --ignored
@@ -28,6 +29,7 @@
2829
pl = pull -v
2930
ps = push
3031
tl = tag -l --sort=-creatordate --format='%(creatordate:short) | %(refname)'
32+
rb = rebase --stat
3133
pristine = !git reset --hard && git clean -f
3234
whereami = show --oneline -s
3335
whenadded = log --diff-filter=A
@@ -38,3 +40,5 @@
3840
gone = "!git fetch -p && for b in $(git for-each-ref --format='%(if:equals=[gone])%(upstream:track)%(then)%(refname:short)%(end)' refs/heads); do git branch -D $b; done"
3941
[gpg]
4042
program = gpg
43+
[init]
44+
defaultBranch = master

0 commit comments

Comments
 (0)