Environment: ubuntu16.04
Source: The above opened a branch for individuals, saying that the next time the code is updated, it will be directly pushed to the personal branch, and then apply for integration into the master to improve the efficiency of development.
Then there is the following summary of Xiaobai's knowledge of using the bitbucket branch version:
(1) In the workspace, git pull and git push are for personal branches (in the beginning, they are personal branches, if not individuals Branch, you have to switch back);
(2) When integrating a personal branch master
, you need to do branches
it once in the actions
drop-down bar in your own branch sync
, and then pull request-create
request to be integrated into the branch.
(3) The Behind
number of updates that the branch indicated by the parameter lags behind the main branch; it ahead
indicates how many times the branch is updated than the main branch.
(4) Sync
The purpose is to synchronize its own branch with the main branch first, and then integrate it into the main branch.
(1)-(4) are all operated on the web side.
Next time you adopt the method, before the terminal updates the branch, first go to the web page to 库-branches-behind/ahead-
see behind
if it is 0
, if it is not, 0
you need sync
it-the terminal update git pull-更新内容-再上传自己分支--拉请求融入master
will ensure that it will not cause simultaneous modification (the same file, different people have modified it). Conflict issues arise.
If master
there is no update, then the sync
button is yes 没有出现
.
Switch branch operation:
git brach
confirm the branch where you are currently located, the colored star is the branch where you are, and the others are the names of all branches including master;
git chechout
synchronize your current branch or master;
git merge xxx
switch to the target branch xxx.
The above are some personal records. If there is a mistake, I hope to leave a message below to correct it.
#################
Good memory is not as good as bad
writing'–20200824