소스 검색

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 4 년 전
부모
커밋
b3804f90b7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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/