Browse Source

push: update remote branch with same name when not providing refspec (no longer require manual configuration of upstream branch)

> When the command line does not specify where to push with the <repository> argument,
> branch.*.remote configuration for the current branch is consulted to determine where to push.
> If the configuration is missing, it defaults to origin.

> When the command line does not specify what to push with <refspec>... arguments or --all, --mirror, --tags options,
> the command finds the default <refspec> by consulting remote.*.push configuration,
> and if it is not found, honors push.default configuration to decide what to push
Fabian Peter Hammerle 3 years ago
parent
commit
b3804f90b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gitconfig

+ 1 - 1
gitconfig

@@ -48,7 +48,7 @@
 	autostash = true
 
 [push]
-	default = simple
+	default = current
 
 [url "git@github.com:"]
 	pushInsteadOf = https://github.com/