How can we help?

Help via Chat 24h from monday to friday

Getting Started with 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.

Accessing

Please choose a platform:

To use 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.

Git bash here

Run the following commands, in order.

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

And to finish publishing your website, just execute these commands replacing {GIT URL} with the GIT URL that you find in the control panel:

$ git remote add umbler {GIT URL}
$ git push umbler master

In your terminal, go to the path 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"

And to finish publishing your website, just execute these commands replacing {GIT URL} with the GIT URL that you find in the control panel:

$ git remote add umbler {GIT URL}
$ git push umbler master

All done!

Troubleshooting

Here you can find some troubleshooting information in case you have any trouble during the process. If it's the case, the first thing you can try is to remove your current origin and restart this tutorial. Execute the following command to remove your origin:

$ 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\your-user\.ssh\config (Please note that this file doesn't have a file extension)