D
D
dilistinc2014-04-13 10:36:28
symfony
dilistinc, 2014-04-13 10:36:28

How to properly set up a remote Git repository?

I am creating a Symfony 2 project on a VPS. Decided to use Git for version control. Installed Symfony on Debian. Installed Git. Created a repository in the project folder, added all files under control, committed.
Now I need to work with the project locally. Created a "bare" copy of the git folder in the root of the server. So I start working with it through Windows Git, clone the repository via SSH, make changes, add changes under control, make a commit, push. Everything passes without errors, but there are no changes on the server. The question is, why does a bare copy of Git do nothing with the working project?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander N++, 2014-04-13
@sanchezzzhak

I am using an external git repo. I recommend bitbucket.org you can create private git turnips for free, up to 3-5pcs. (I recommend the SourceTree program from them)
The git user and the files that you edited from the same group?

E
Eugene, 2014-04-13
@Nc_Soft

On the server, you also need to do a pull. Or set up a hook after the commit.

Y
YEASTOR, 2014-09-19
@YEASTOR

I use phpStorm and bitbucket to store my code in a private repository.
I work like this:
There are two FTP: combat (VPS) and test (VDS)
In phpStrom, two projects "Project_name Dev" and "Project_name Prod" each have RemoteHost configured for the corresponding FTP. For each project, a remote git repository on bitbucket is connected.
All development is carried out on a test ftp, after which Push is done to the dev branch of the remote repository.
After that, in the Production project, Pull to the local dev branch, uploading changes to the Production FTP (Ctrl + s in phpStrom), testing (manually), merge it with the master branch and Push to the remote repository already in the master branch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question