From 51dafc36ddc93834a4f6caaf599ae881fa9358af Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Fri, 21 Apr 2023 11:53:21 +0200 Subject: [PATCH] Enforce ssh git push URLs --- git/gitconfig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/git/gitconfig b/git/gitconfig index 24b96fd..0dcb5ec 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -67,6 +67,10 @@ [delta] line-numbers = true [pull] - rebase = false -[safe] - directory = /etc/nixos + ff = only +[url "ssh://git@github.com/"] + pushInsteadOf = https://github.com/ +[url "ssh://git@gitlab.com/"] + pushInsteadOf = https://gitlab.com/ +[url "ssh://git@bitbucket.org/"] + pushInsteadOf = https://bitbucket.org/