From 8ab73704091f2192304ab0960bc5235d084690d6 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 10 Apr 2024 11:52:28 +0800 Subject: [PATCH] enhance: use `--force` to override local refs if it is mismatched with remote's --- src/Commands/Fetch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Fetch.cs b/src/Commands/Fetch.cs index f195c011..8f84c346 100644 --- a/src/Commands/Fetch.cs +++ b/src/Commands/Fetch.cs @@ -24,7 +24,7 @@ namespace SourceGit.Commands Args = "-c credential.helper=manager "; } - Args += "fetch --progress --verbose "; + Args += "fetch --force --progress --verbose "; if (prune) Args += "--prune "; Args += remote;