commit 1406de0242ed535cafc0e77ecc8921da45341c99
parent 6f1c70b6bc11080265e4782e290e24a7b7d68419
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sun, 16 Dec 2018 17:42:13 +0100
Simplified git home alias
Former-commit-id: c4be9d0e1b6fb3bee0bc4677e974472fe28a9573
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/git/gitconfig b/git/gitconfig
@@ -41,10 +41,8 @@
pff = pull --ff-only
pnf = pull --no-ff
fuckitall = reset --hard HEAD
+ home = "!git remote get-url origin | sed -E 's|^git@([^:]+):|https://\\1/|'"
up-sub = "!git submodule foreach 'git fetch origin --tags; git checkout master; git pull' && git add . && git commit -m 'Updated submodules';git submodule update --recursive --checkout --force"
- home = "!git remote show origin \
- | awk -F ': ' '/Fetch/ {print $2}' \
- | sed 's/git@\\([^:]*\\):/https:\\/\\/\\1\\//'"
open = "!open $(git home)"
dad = "!curl https://icanhazdadjoke.com/ && git add"