summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar josch <josch@web>2014-06-27 11:26:51 +0000
committerGravatar admin <admin@branchable.com>2014-06-27 11:26:51 +0000
commit5f3037eb87592d0914a4201c04a4e2fee68ae7d2 (patch)
tree0c1a8d6f7386f6d9479f871cb33f6d2a26792f38
parentec352aa991eea747f23b73cad3bcb975593e5b94 (diff)
-rw-r--r--doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn b/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn
index 5a73ec179..3ce01d5cd 100644
--- a/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn
+++ b/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn
@@ -1,3 +1,5 @@
I fear that while using git annex I will at some point accidentally `git add` some small files and not notice it until the only way to fix the problem is to rewrite history. What would be the best way to prevent myself from ever `git add`-ing a file into my annex repository instead of `git annex add`-ing it?
-And secondly, how can I best search in my git annex repository whether I already did this mistake in the past or not?
+And secondly, how can I best search in my git annex repository whether I already did this mistake in the past or not? Currently I'm using this:
+
+ git ls-files -s | awk ' $1 != '120000' { print $4 }'