views
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.
cPanelcurrently 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 mandatory required documentation for exploitation lowlife in cPanel is on the market official cPanel Documentation.
At this step, you have got with success created the lowliferepo in cPanel.
Note: you'll additionally produce lowlife repo at cPanel by and to server and exploitation commands as mentioned below:
Once you have got logged into the Server via SSHexploitation 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 thecPanel-hosted repository:
Command 1:
git remote add originssh://[cPanelLoginUserName]@[WebsiteName]/[RepoPath]/[RepoName]
Command 2:
git push -u origin master
Case 2: To clone cPanel’s lowlife Repo to native lowlifeRepo:
Step 1: Clone the cPanel-hosted repository to your native pcand navigate to its directory:
git clonessh://[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 Stagingthe 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 cPanellowlife