File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
158
158
* [ Generates a summary of pending changes] ( #generates-a-summary-of-pending-changes )
159
159
* [ List references in a remote repository] ( #list-references-in-a-remote-repository )
160
160
* [ Backup untracked files.] ( #backup-untracked-files )
161
+ * [ List all git aliases] ( #list-all-git-aliases )
161
162
162
163
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
163
164
<!-- @doxie.inject end toc -->
@@ -1087,5 +1088,16 @@ git ls-remote git://git.kernel.org/pub/scm/git/git.git
1087
1088
git ls-files --others -i --exclude-standard | xargs zip untracked.zip
1088
1089
```
1089
1090
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
+
1090
1102
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
1091
1103
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 466
466
}, {
467
467
"title" : " Backup untracked files." ,
468
468
"tip" : " git ls-files --others -i --exclude-standard | xargs zip untracked.zip"
469
+ }, {
470
+ "title" : " List all git aliases" ,
471
+ "tip" : " git config -l | grep alias | sed 's/^alias\\ .//g'" ,
472
+ "alternatives" : [" git config -l | grep alias | cut -d '.' -f 2" ]
469
473
}]
You can’t perform that action at this time.
0 commit comments