Git Repositories in cPanel:



Git Repositories in cPanel:
Git may be a versioning system for a chase, maintaining and change the conflict-free changes within the project, that area unit done by all the developers functioning on the project.
cPanel is an internet Linux-based web hosting instrument panel that has a graphical interface and automation tools designed to change the method of hosting an internet web site.
cPanel currently formally offers the support to host lowlife Repos over the online servers. you'll be able to additionally manage the cPanel lowlife Repos either through the cPanel’s lowlife Version’s management possibility or additionally by exploitation the commands when SSH to the server. Also, all the required the mandatory required documentation for exploitation lowlife in cPanel is on the market at official cPanel Documentation.
At this step, you have got with success created the lowlife repo in cPanel.
Note: you'll additionally produce lowlife repo at cPanel by SSH and to server and exploitation commands as mentioned below:
Once you have got logged into the Server via SSH exploitation any tool like PuTTY.

Type this command within the directory that you simply wish to use as lowlife Repo:

git init
Now you have got with success created the lowlife Repo on internet Server, exploitation commands, rather than GUI.

In the next step, as a Case one, you may either clone your existing native computer’s lowlife Repo to lowlife Repo Created on Server / cPanel
OR
As a case a pair of, you may clone the cPanel / internet Server’s lowlife Repo to your native PC’s recently created lowlife Repo.

The steps for each cases area unit delineated below:

Case 1: To PUSH native Repo to cPanel Repo

Step 1: Navigate to your repository’s directory by this command:
cd /path/to/your/repo

Step 2: assemble your native repository to push to the cPanel-hosted repository:
Command 1:
git remote add origin ssh://[cPanelLoginUserName]@[WebsiteName]/[RepoPath]/[RepoName]
Command 2:
git push -u origin master

Case 2: To clone cPanel’s lowlife Repo to native lowlife Repo:

Step 1: Clone the cPanel-hosted repository to your native pc and navigate to its directory:

git clone ssh://[cPanelLoginUserName]@[WebsiteName]/[RepoName]
Change your location to lowlife Repo Directory
cd [RepoName]

Step 2: produce a README file:
echo “# README” >> README.md

Step 3: we tend to modify the update, referred to as Staging the Update, to commit it than
git add README.md

Step 4: Commit the README file to the project:
git commit -m “Initial Commit”

Step 5: Push the attempt to Head Branch, hosted over cPanel lowlife


Comments

Popular posts from this blog

What is Web hosting?

What is Dedicated Hosting?

THE DIFFERENCE BETWEEN UNIQUE IPS AND SHARED IPS