From 2b4a2064ecfa678c09e01fb33637d1bc2d006489 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 24 Oct 2013 10:02:50 +1300 Subject: Add new alias --- README.markdown | 6 ++++++ git/gitconfig | 1 + 2 files changed, 7 insertions(+) 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 -- cgit v1.2.3