From: pat Date: Sat, 3 Jul 2021 23:14:30 +0000 (+0000) Subject: (no commit message) X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~2^2^2~69^2~137^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c95d3592815fb7004f1a5ce74fb4937b7803bee9;p=git-annex.git --- 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` ?