From ca0ca6012fa765eacc830a69bf1156f32c7637de Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 30 Sep 2019 13:34:26 -0400 Subject: [PATCH] remove -n from example That was only needed with git-annex before v7. The pre-commit hook no longer scans for and re-locks typechanged files. --- doc/tips/largefiles.mdwn | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/doc/tips/largefiles.mdwn b/doc/tips/largefiles.mdwn index f7f87611a9..dbff40598b 100644 --- a/doc/tips/largefiles.mdwn +++ b/doc/tips/largefiles.mdwn @@ -141,13 +141,8 @@ convert that to be stored in git, here's how to accomplish that: git annex unlock file git -c annex.largefiles=nothing add file - git commit -n file + git commit file You can modify the file after unlocking it and before adding it to git. And this is probably a good idea if it was really a big file, so that you can replace its content with something smaller. - -Notice the `-n` switch when committing the file. This bypasses the -[[git-annex-precommit]] hook. In this situation, that hook sees an unlocked -file and wants to add it back to the annex, so you have to bypass the hook -to get the file committed to git.