Advanced git-checkout
This commit is contained in:
parent
de5a133313
commit
8bd52e2017
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,13 @@
|
|||
function advanced-git-checkout {
|
||||
if [ $# -eq 0 ]; then
|
||||
git branch \
|
||||
| fzf \
|
||||
| xargs -I {} git checkout {}
|
||||
else
|
||||
git checkout $@
|
||||
fi
|
||||
}
|
||||
|
||||
function ag-count {
|
||||
if [ $# -lt 1 ]; then
|
||||
echo Usage: ag-count SEARCHTERM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue