[英]git push/merge config
There is following output in git remote show
git remote show
有以下输出
git remote show origin
remote origin
Fetch URL: https://user@server/path
Push URL: https://user@server/path
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
Where Local branch configured for 'git pull':
and Local ref configured for 'git push':
are configured? 其中
Local branch configured for 'git pull':
和Local ref configured for 'git push':
配置的Local ref configured for 'git push':
?
You can run git config --list
to see your complete git
configuration, which will include sections named branch.<BRANCHNAME>.merge
and branch.<BRANCHNAME>.remote
. 您可以运行
git config --list
来查看完整的git
配置,其中将包括名为branch.<BRANCHNAME>.merge
和branch.<BRANCHNAME>.remote
。 These define the upstream branch for the given local branch. 这些定义了给定本地分支的上游分支。 From the entry for
branch.<name>.merge
in git-config(1)
: 从
branch.<name>.merge
的条目branch.<name>.merge
到git-config(1)
:
Defines, together with branch..remote, the upstream branch
与branch..remote一起定义上游分支
for the given branch.给定的分支。 It tells git fetch/git pull/git rebase which
它告诉git fetch / git pull / git rebase
branch to merge and can also affect git push (see push.default).要合并的分支,还可能影响git push(请参见push.default)。
The push.default
option influences what git push
will do absent explicit references on the command line. push.default
选项影响在命令行上没有显式引用的情况下git push
将执行的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.