Add alias git checkout-all
and git coa
...
... to fetch all branches from a git origin
This commit is contained in:
parent
4a82476f77
commit
b71714856f
1 changed files with 2 additions and 0 deletions
|
@ -14,7 +14,9 @@ cf = cat-file
|
|||
ci = commit
|
||||
cim = commit --message
|
||||
cl = clone
|
||||
checkout-all = "!f() { for branch in $(git branch -r | grep -v '\\->'); do git branch --track ${branch#origin/} $branch; done; git fetch --all; }; f"
|
||||
co = checkout
|
||||
coa = checkout-all
|
||||
cob = checkout -b
|
||||
cod = checkout develop
|
||||
com = checkout master
|
||||
|
|
Loading…
Reference in a new issue