From 3cd5b8e36254a121fb587a79f966d1ac25e23686 Mon Sep 17 00:00:00 2001 From: andornaut Date: Thu, 31 Aug 2023 09:07:33 -0400 Subject: [PATCH] Add --force to `git add` --- internal/link/link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/link/link.go b/internal/link/link.go index 430cdea..e90a50a 100644 --- a/internal/link/link.go +++ b/internal/link/link.go @@ -167,7 +167,7 @@ func File(repoPath, intPath string) error { } func addToGit(repoPath, intPath, extPath string) { - if err := git.Run(repoPath, "add", intPath); err != nil { + if err := git.Run(repoPath, "add", "--force", intPath); err != nil { printError(intPath, err) } }