mirror of
https://github.com/Phantop/dotfiles
synced 2025-01-28 15:36:54 +00:00
Fish: clean git functions for safer, neater use
This commit is contained in:
parent
01bb5d4eb6
commit
7b9854d57b
|
@ -1,4 +0,0 @@
|
|||
# Defined in /tmp/fish.3rbNOq/aud.fish @ line 1
|
||||
function aud
|
||||
audacious -H $argv
|
||||
end
|
|
@ -1,6 +0,0 @@
|
|||
# Defined in /tmp/fish.UMey6t/fuckgit.fish @ line 2
|
||||
function fuckgit
|
||||
git reset --hard
|
||||
git clean -fdx
|
||||
git gc --aggressive --prune=now
|
||||
end
|
4
.config/fish/functions/gcl.fish
Normal file
4
.config/fish/functions/gcl.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Defined in /tmp/fish.t8Y7sg/gcl.fish @ line 2
|
||||
function gcl
|
||||
git gc --aggressive --prune=now
|
||||
end
|
4
.config/fish/functions/gr.fish
Normal file
4
.config/fish/functions/gr.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Defined in /tmp/fish.4ITsNE/gr.fish @ line 1
|
||||
function gr
|
||||
git reset --hard
|
||||
end
|
3
.config/fish/functions/gw.fish
Normal file
3
.config/fish/functions/gw.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function gw
|
||||
git clean -fdx
|
||||
end
|
|
@ -1,7 +0,0 @@
|
|||
function motherfuckgit
|
||||
git clean -xfd
|
||||
git submodule foreach --recursive git clean -xfd
|
||||
git reset --hard
|
||||
git submodule foreach --recursive git reset --hard
|
||||
git submodule update --init --recursive
|
||||
end
|
|
@ -1,4 +0,0 @@
|
|||
function remotegit
|
||||
git fetch origin
|
||||
git reset --hard origin/master
|
||||
end
|
Loading…
Reference in a new issue