add git aliases: change branch and track all remote branches
This commit is contained in:
parent
d4fe8fd7d8
commit
ea815f73b4
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
default = current
|
default = current
|
||||||
[alias]
|
[alias]
|
||||||
a = add
|
a = add
|
||||||
|
b = "!git checkout $(git branch | fzf)"
|
||||||
c = commit
|
c = commit
|
||||||
cd = checkout develop
|
cd = checkout develop
|
||||||
cl = clone
|
cl = clone
|
||||||
|
@ -20,5 +21,6 @@
|
||||||
p = push -u origin
|
p = push -u origin
|
||||||
pu = pull
|
pu = pull
|
||||||
s = status
|
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]
|
[include]
|
||||||
path = ~/.gitconfig_custom.inc
|
path = ~/.gitconfig_custom.inc
|
||||||
|
|
Loading…
Add table
Reference in a new issue