sourcetree - git commit code on one branch and commit to master at the same time?
天蓬老师2017-05-02 09:37:15
0
1
587
Pull a branch test from master Then submit the code in test, push As a result, test master has submission records Use sourcetree operation Does anyone know what is going on? Thanks!
It should be set by default
remote.origin.push
到两个分支test
和master
I have never used sourcetree. I don’t know if she uses the one in the project
.git/config
or if she has any special configuration files.But you can check the
.git/config
file first to see if it contains the following content:If
[remote "origin"]
片段里有上述配置,那你每次git push
, it will be submitted to both remote branches at the same time