R
R
RJs452014-09-22 08:56:54
git
RJs45, 2014-09-22 08:56:54

How to properly divide into branches in git?

Good day. I decided to transfer the projects of one customer to the "correct" git. Now he has 2 reposes: one is a master, the second is a virgin. I want to make one repos and 2 branches: master and developement, respectively.
I initiate a new repository from the current master repo, create a dev branch in it.
Question: what is the correct order of actions (preferably with example commands):
1. switch to the dev branch
2. pull it to myself (to the local machine)
3. make changes
4. Komichu in dev
5. After approving the merge to master
6. Komichu master
Main I have difficulties with switching branches and with merge dev to master.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gregory, 2014-09-22
@RJs45

It will be useful for you to read about git flow here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question