浏览代码

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

Fabian Peter Hammerle 3 年之前
父节点
当前提交
466e729526
共有 1 个文件被更改,包括 2 次插入0 次删除
  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