From e976a09257cc0da177c6875488017ebb811ba104 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 9 Jun 2024 23:57:31 +0530 Subject: [PATCH] git: push to remote branch with same name --- home/programs/git.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/programs/git.nix b/home/programs/git.nix index b8c9174..8f11015 100644 --- a/home/programs/git.nix +++ b/home/programs/git.nix @@ -29,7 +29,10 @@ in fetch.prune = true; init.defaultBranch = "main"; merge.conflictstyle = "zdiff3"; - push.autoSetupRemote = true; + push = { + default = "current"; + autoSetupRemote = true; + }; pull.ff = "only"; }; ignores = [ "/.nix" "/.direnv" ];