N
N
NikitoZ Sc.2016-01-25 11:52:45
git
NikitoZ Sc., 2016-01-25 11:52:45

How to configure git?

Tell me how to properly configure git. There is a project, located on the server in the /srv/project and /srv/project-beta directories. How to create a repository correctly so that the master branch is located in project, and beta is in project-beta? So that a commit to one branch does not affect another?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cat Anton, 2016-01-25
@27cm

A branch is a pointer to a commit and cannot be located in a separate directory. Understand the theory, then read up on gitflow .

I
Igor Nikolaev, 2016-01-25
@nightvich

Commits to one branch by default, does not affect the other in any way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question