From 4e917c225988eeab606af17edf22f4b53506baca Mon Sep 17 00:00:00 2001 From: Phantop Date: Thu, 21 Feb 2019 22:37:54 -0500 Subject: [PATCH] Fish: Add function to reset git repo to remote --- .config/fish/functions/remotegit.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .config/fish/functions/remotegit.fish diff --git a/.config/fish/functions/remotegit.fish b/.config/fish/functions/remotegit.fish new file mode 100644 index 0000000..d8ee3d2 --- /dev/null +++ b/.config/fish/functions/remotegit.fish @@ -0,0 +1,5 @@ +# Defined in /tmp/fish.dVb8v4/remotegit.fish @ line 1 +function remotegit + git fetch origin +git reset --hard origin/master +end