mirror of
https://gitea.zaclys.com/yannic/dotfiles.git
synced 2026-06-15 11:11:57 +02:00
add git aliases: change branch and track all remote branches
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user