Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
b3804f90b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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/