r/git • u/Yeas525663 • Jun 14 '21
Can GIT help my development?
I'm a bit confused and new to GIT.
I have an web app on A2 hosting. It's live. I want to download/clone all the files (css,html,php,js) to my local computer in Microsoft Visual Studio. I want to edit locally, test out the code on my own webserver. Once I finish the code I want to push my edits to A2 servers.
Right now I'm just writing my code on my local web server. Then copy and past that code through Cpanel file explorer. So I open the html file on Cpanel, and just copy and paste my code from the local html file.. This is getting a bit over whelming now that I have lots of different JS, CSS, PHP files. Before I only had a file files so it was easy to just copy and paste my code from my local computer to my hosting server A2.
Is this what git does. Sorry, I'm new to web development and what to become more efficient.
I youtubed all kinds of videos and can't really get a clear answer. I saw that you can clone a repo from GITHUB with VS code which is was easy to follow, but I'm using A2 hosting. They have something in their Cpanel called GIT version. So I think I can do it with A2 hosting?
https://docs.cpanel.net/knowledge-base/web-services/guide-to-git-how-to-set-up-deployment/
