What is the path I should install my Git repository to Git Version Control
So I'm looking at the video documentation from cPanel: cPanel Tutorials - Git Version Control
And I noticed the developer put installed her repository in a path like this:
[QUOTE]/home/user/repositories/SSPbycPanel
I installed mine in a directory like this: [QUOTE]/home/user/public_html/
From my experience using other web development technologies git is supposed to be installed directly in the root of the project, so here it is installed outside of the project? If so why does cPanel say it should be like that? Do I now have to delete my current repository and create a new one in a directory like this: [QUOTE]/home/user/repositories/website-name
I installed mine in a directory like this: [QUOTE]/home/user/public_html/
From my experience using other web development technologies git is supposed to be installed directly in the root of the project, so here it is installed outside of the project? If so why does cPanel say it should be like that? Do I now have to delete my current repository and create a new one in a directory like this: [QUOTE]/home/user/repositories/website-name
-
You can make any of your local directory as a GIT project (i.e repository). For example, if your project is located under /home/ramesh/projects/passworddragon, you can make that as your GIT project. cd /home/ramesh/projects/passworddragon $ git init Initialized empty Git repository in /home/ramesh/projects/passworddragon/.git/ Regards HostNoc 0 -
I guess my real question is that I don't know how I'm supposed to use this feature, even coming from a background with Git, cPanel, LAMP and FTP are the things that are new to me. So my question is I have my repository from Git Version Control setup like this: /home/user/my-repo/ So how is my repo supposed to relate to the public_html/ path in my server? Am I supposed to use FTP to upload my entire project to public_html once I have a new commit on the master branch? Or is there a better workflow? 0
Please sign in to leave a comment.
Comments
3 comments