Browse Source

added aliases "github-urls" & "github-repo-names"

Fabian Peter Hammerle 3 years ago
parent
commit
466e729526
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gitconfig

+ 2 - 0
gitconfig

@@ -76,6 +76,8 @@
 	c = commit
 	d = diff
 	f = fetch --prune
+	github-repo-names = !git github-urls | grep --only-matching --perl-regexp 'github.com/\\K.+(?=\\.git)'
+	github-urls = !git remote-urls | grep ^https://github.com/
 	p = push --verbose
 	remote-urls = !git remote | xargs -L1 git remote get-url
 	s = status