init .config git tracking
This commit is contained in:
commit
114c330966
151 changed files with 4688 additions and 0 deletions
11
config/fish/functions/grename.fish
Normal file
11
config/fish/functions/grename.fish
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
function grename -d "Rename 'old' branch to 'new', including in origin remote" -a old new
|
||||
if test (count $argv) -ne 2
|
||||
echo "Usage: "(status -u)" old_branch new_branch"
|
||||
return 1
|
||||
end
|
||||
git branch -m $old $new
|
||||
git push origin :$old
|
||||
and git push --set-upstream origin $new
|
||||
end
|
||||
|
||||
complete -c grename -x -a "(complete -C 'git branch ')"
|
||||
Loading…
Add table
Add a link
Reference in a new issue