From c95d3592815fb7004f1a5ce74fb4937b7803bee9 Mon Sep 17 00:00:00 2001 From: pat Date: Sat, 3 Jul 2021 23:14:30 +0000 Subject: [PATCH] --- doc/forum/How_to_see_what_will_go_to_annex_vs_git.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/forum/How_to_see_what_will_go_to_annex_vs_git.mdwn diff --git a/doc/forum/How_to_see_what_will_go_to_annex_vs_git.mdwn b/doc/forum/How_to_see_what_will_go_to_annex_vs_git.mdwn new file mode 100644 index 0000000000..88f629bc69 --- /dev/null +++ b/doc/forum/How_to_see_what_will_go_to_annex_vs_git.mdwn @@ -0,0 +1,10 @@ +I am importing lots of files from various sources, and want to make sure that I don't inadvertently commit big files to git. On a file-by-file basis, it's easy enough to tell if it matches the inclusion pattern. But for lots of files, I find myself doing: + +1. `git annex add .` +2. Look for the "non-large file; adding content to git repository" message +3. `git reset` +4. `git annex config --set annex.largefiles ...` to add the new file extension to the list + +`git add` doesn't provide any info on what goes where. + +So is there a way to see, in a given directory, what would be annexed and what would be stored in git when doing `git add` / `git annex add` ?