aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.markdown6
-rw-r--r--git/gitconfig1
2 files changed, 7 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index c0ab7de4..8da58e96 100644
--- a/README.markdown
+++ b/README.markdown
@@ -112,6 +112,12 @@ in it are versioned; the rest are ignored locally:
$ git ls-files --others --exclude-standard >>.git/info/exclude
```
+There’s an `others` alias for the above command in `~/.gitconfig`:
+
+```bash
+$ git others >>.git/info/exclude
+```
+
As I occasionally have work on very old internal systems, my Bash is written to
work with [any version 2.05a or
newer](http://wiki.bash-hackers.org/scripting/bashchanges), a few versions
diff --git a/git/gitconfig b/git/gitconfig
index bad64086..71721ce8 100644
--- a/git/gitconfig
+++ b/git/gitconfig
@@ -15,6 +15,7 @@
[alias]
ack = grep --break --heading
+ others = ls-files --others --exclude-standard
[color]
ui = true