This is an article about how to use Git, a version control system, on mixhost.
About using the git command on mixhost
The git command is installed as standard on all mixhost servers.
You can execute the git command from the Terminal of cPanel or execute the git command after an SSH connection.
How to use Git™ Version Control
How to clone a repository on an external server
STEP 1: Click cPanel > "Git™ Version Control".
STEP 2: Click "Create".
Press the "Create" button on the right side of the displayed screen.
STEP 3: Enter various setting values.
- When cloning, enable it (blue state).
- Enter the URL specified in the clone source repository.
- Specify the path where to clone the repository.
- Enter a name for your repository.
- Finally, by pressing the "Create" button, the clone will be executed.
*Depending on the size of the repository, it may take some time to download and transition the screen, so please wait.
How to create a repository on the mixhost server
STEP 1: Click cPanel > "Git™ Version Control".
STEP 2: Click "Create".
Press the "Create" button on the right side of the displayed screen.
STEP 3: Enter various setting values.
- Disable (gray) when creating a repository.
- Specify the path where to create the repository.
- Enter a name for your repository.
- Finally, press the "Create" button to create the repository.
STEP 4: Check the connection method.
When the creation of the repository is completed, the setting method screen will be displayed on how to connect from the local environment.
By using the displayed command, you can execute push, etc. from the local environment.
Git Troubleshooting
Can't clone on mixhost
Check if the permission settings are appropriate. Please refer to the following article for how to change the permission.
Setting permissions
If this does not resolve the issue, please contact support with the following information.
- URL of the repository that failed to clone
- Details of the displayed error message (if nothing is displayed, that fact)
- When did you run it and when did it fail?
I cloned it, but it doesn't work
Changes to OS settings and execution of commands that require root privileges cannot be performed on the mixhost server.
Since it is a shared server where multiple customers use the same server, it is a mechanism that cannot affect other customers.
Could you please check whether the command you are trying to execute or the web application does not include executing commands that require root privileges?
Please refer to the following article for the various paths of the server.
A list of various paths
can't connect to the repository created on mixhost
SSH key setting is required separately. Please refer to the following article for how to set the SSH key.
How to use SSH
I want to raise/lower the version of Git itself
We are very sorry, but there is no way for customers to change the Git version.