Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SourceTree git:如何指定默认的非标准推送分支?_Git_Atlassian Sourcetree - Fatal编程技术网

SourceTree git:如何指定默认的非标准推送分支?

SourceTree git:如何指定默认的非标准推送分支?,git,atlassian-sourcetree,Git,Atlassian Sourcetree,我有一个atlassian SourceTree git客户端。当我尝试推送时,默认的远程分支是master 如何设置客户端,使默认分支不是“master”(例如“refs/for/master”)呢 提前谢谢 每个分支都可以有不同的上游分支,因此需要分别为每个分支设置它们。然而: # git push --set-upstream remotename remotebranch 将允许您将当前分支上游设置为给定的remotename/remotebranch组合。存储库->存储库设置 单击[

我有一个atlassian SourceTree git客户端。当我尝试推送时,默认的远程分支是master

如何设置客户端,使默认分支不是“master”(例如“refs/for/master”)呢


提前谢谢

每个分支都可以有不同的上游分支,因此需要分别为每个分支设置它们。然而:

# git push --set-upstream remotename remotebranch

将允许您将当前分支上游设置为给定的remotename/remotebranch组合。

存储库->存储库设置 单击[编辑配置文件…]

在配置文件中:

在本节中: [远程“源”]

添加以下行:
push=refs/heads/:refs/for/

我需要为SourceTree UI做这些