fix: push default current branch

The option push.default=upstream is not suitable for when the branch is
not created yet as it will default to the upstream branch. Even if
specifying the refspec as an argument, it will still push to the default
one, creating a mess.
This commit is contained in:
Ben Grande 2023-11-21 17:06:01 +00:00
parent 59dd3011b2
commit 4cdc092a3b
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -143,7 +143,7 @@
rebase = false rebase = false
[push] [push]
autoSetupRemote = true autoSetupRemote = true
default = upstream default = current
gpgSign = if-asked gpgSign = if-asked
[rebase] [rebase]
autoSquash = true autoSquash = true