Answer the question
In order to leave comments, you need to log in
How is the connection between the test and production sites to the same git repository?
Hello. Started learning git. I realized that this is very useful knowledge both in practice and when applying for a job. But one thing keeps bothering me.
Here I have a site called mysite.ru. This is a combat site/production. Naturally, on the server, the files of this site are located along the path /www/mysite.ru/ Now I want to add a version control system for the site. I have created a user
git config --global user.email "[email protected]"
git config --global user.name "My UserName"
cd ~/www/mysite.ru
git init
git add .
git commit -m "Первый коммит"
Answer the question
In order to leave comments, you need to log in
Great, now I have a .git folder on the server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question