Answer the question
In order to leave comments, you need to log in
How to properly edit a site with git?
Here is a site. He is on a host with his own domain in his server environment, etc. That is, in a reliably working form, it exists in one place in one copy.
Usually, when I need to make some changes to the site code, I connect via ftp and make changes, then I check the functionality in the browser, if necessary, I edit again 1-2-10-50 ... times until the desired result is achieved. then I just finish the job. It's quick and easy, and the result is visible immediately.
This approach has the disadvantage of not having version control. You need to use git. But how to do it?
So I install git for myself, create a repository on github, create a local copy on my computer. Now I can edit on my computer and store on github, and then upload files to the host from github. But checking the code on the local machine is now blind, without a quick check, and uploading changes to the site becomes a long and tedious operation.
I come to the conclusion that I misunderstand something in the approach to this work, but I have not been able to find any kind of manual for this task. All explanations revolve between local and github when developing applications.
Answer the question
In order to leave comments, you need to log in
I can suggest the following options:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question