mirror of
https://github.com/namibia/tips.git
synced 2025-01-03 14:17:28 +00:00
Merge pull request #137 from dmlemos/list_git_aliases
Add list all git aliases
This commit is contained in:
commit
39c7902f9c
12
README.md
12
README.md
@ -158,6 +158,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
||||
* [Generates a summary of pending changes](#generates-a-summary-of-pending-changes)
|
||||
* [List references in a remote repository](#list-references-in-a-remote-repository)
|
||||
* [Backup untracked files.](#backup-untracked-files)
|
||||
* [List all git aliases](#list-all-git-aliases)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
@ -1087,5 +1088,16 @@ git ls-remote git://git.kernel.org/pub/scm/git/git.git
|
||||
git ls-files --others -i --exclude-standard | xargs zip untracked.zip
|
||||
```
|
||||
|
||||
## List all git aliases
|
||||
```sh
|
||||
git config -l | grep alias | sed 's/^alias\.//g'
|
||||
```
|
||||
|
||||
|
||||
__Alternatives:__
|
||||
```sh
|
||||
git config -l | grep alias | cut -d '.' -f 2
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -466,4 +466,8 @@
|
||||
}, {
|
||||
"title": "Backup untracked files.",
|
||||
"tip": "git ls-files --others -i --exclude-standard | xargs zip untracked.zip"
|
||||
}, {
|
||||
"title": "List all git aliases",
|
||||
"tip": "git config -l | grep alias | sed 's/^alias\\.//g'",
|
||||
"alternatives": ["git config -l | grep alias | cut -d '.' -f 2"]
|
||||
}]
|
||||
|
Loading…
Reference in New Issue
Block a user