D
D
des1roer2015-06-04 11:20:44
linux
des1roer, 2015-06-04 11:20:44

Setting up a git server?

There is the following - a working computer Win 7, netbeans, communication with the server via winscp, putty, OpenServer.
Server - centos
I want to get the following - the server has a constantly working project. If I need to fix something, I code and test on a local wheelbarrow. Then I upload it to the server.
Or in this case, you can do without the local area and just keep two branches on the server - the main and develop ?
Very vague idea of ​​how it should work. Where does Git create the repository? Is a running project and a repository the same thing?
Now the development process is like this - I finish the functions locally, in which case I upload it to a server and see how it starts on it.
UPD
purely practical matter. created a repository on the server. I'm trying to connect from netbins. use http or ssh protocol? root password? if the yii project is in var/www/sitename/public_html/yiiproj . rep .git created in yiiproj
how to connect? like sitename/yiiproj/.git or sitename/public_html/yiiproj/.git

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yustas Alexu, 2015-06-04
@des1roer

Or in this case, you can do without local and just keep two branches on the server - main and develop

No. Switching between branches changes the folder structure and files. You cannot be in two branches of the same repository at the same time.
Create a repository first on the server, then clone locally.
PS It's better to install CentOS on a virtual machine, set up a working environment and test there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question