Skip to content

Commit 200be8d

Browse files
authored
Merge pull request git-tips#137 from dmlemos/list_git_aliases
Add list all git aliases
2 parents 1ccd87d + 6761abd commit 200be8d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
158158
* [Generates a summary of pending changes](#generates-a-summary-of-pending-changes)
159159
* [List references in a remote repository](#list-references-in-a-remote-repository)
160160
* [Backup untracked files.](#backup-untracked-files)
161+
* [List all git aliases](#list-all-git-aliases)
161162

162163
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
163164
<!-- @doxie.inject end toc -->
@@ -1087,5 +1088,16 @@ git ls-remote git://git.kernel.org/pub/scm/git/git.git
10871088
git ls-files --others -i --exclude-standard | xargs zip untracked.zip
10881089
```
10891090
1091+
## List all git aliases
1092+
```sh
1093+
git config -l | grep alias | sed 's/^alias\.//g'
1094+
```
1095+
1096+
1097+
__Alternatives:__
1098+
```sh
1099+
git config -l | grep alias | cut -d '.' -f 2
1100+
```
1101+
10901102
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
10911103
<!-- @doxie.inject end -->

0 commit comments

Comments
 (0)