How can we help?

Help via Chat 24h from monday to friday

Configuring and accessing your local Git

This tutorial will guide you through the process of deploying from a local repository for PHP sites. For Node.JS please visit this guide.

What's Git?

Git is a version control system for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for source code management in software development, but it can be used to keep track of changes in any set of files. As a distributed revision control system, it is aimed at speed, data integrity, and support for distributed, non-linear workflows.

Configuring

Access the Site section, then Deploy, and in Local Git click on Enable.

gitlocal.png

All set! your Local Git is enabled and the URL is displayed on the Control Panel.

gitlocal2.png

Accessing

Please choose a platform:

To manipulate git on your Windows PC, please download and install Git GUI (you can use the default options for installation).

Using the Explorer browse to your project's folder, right click and choose Git Bash Here.

Run the following commands, in order..

git init
git add .
git commit -m "publish website"

And to finish publishing your website run:

git remote add umbler GIT URL
git push umbler master

On your terminal, access the folder where your project is and run the following commands, in order:

git init
git add . 
git commit -m "publish website"

If this is the first time you are running a git command, a commit data related error could happen, in this case please run the following commands:
git config --global user.email "your email"
git config --global user.name "your username"
Then run again: git commit -m "publish website"

To conclude the deployment of your website run:

git remote add umbler GIT URL
git push umbler master

In case you are having trouble with the deployment, please remove your current origin and re-configure:
git remote rm umbler
If the following error shows up:
"Unable to negotiate with host: no matching host key type found. Their offer: ssh-dss",
please add the following lines to your config file (in case it was not created yet, you must create this file):

Host yoursite-com.umbler.net
HostkeyAlgorithms +ssh-dss

This file must be in the following path: ~/.ssh/config OR C:\Users\seu-user\.ssh\config (Please note that this file doesn't have a file extension)