Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
892 views
in Technique[技术] by (71.8m points)

bitbucket - best way for splitting poject using git features like branching

i have a project which is in bitbucket

some work/bug fix is going on in master branch

this is in both live server and test server

now client want a new feature which we should not push to live server

he want to test new feature in test server only

but at same time bug fix he has to test in test server and after that live server we have to push daily to live server for bug fix

how can i achive this using git branching/or any other git features

i am completely new to git etc i just have coding knowledge in php/python


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Let's assume your production branch is master and your test branch is test.

You can have a hotfix branch based on master too.

when you want to commit something on the test server, just commit it on the test branch. and when you have a bugfix commit it in the hotfix branch and then merge it with both master and test.

By the way, this is not the only solution.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...