Skip to main content
.com from $2.99, and WHOIS privacy costs nothing

Learning Hub · Advanced · 45 minutes of setup

How to Deploy a Site With Git

Push-to-deploy replacing drag-and-drop forever — a practical, no-jargon walkthrough with the classic mistake flagged before you make it.

The short answer

In one line: push-to-deploy replacing drag-and-drop forever — a advanced-level job taking 45 minutes of setup.

The walkthrough below covers each step, the mistake most people make, and the shortcut worth knowing. On HostingAlly plans, several of the steps are handled for you — we note where.

Written by the HostingAlly team · Last revised 27 July 2026

Advanced

Skill level

5

Steps to done

Free

Support included

Tested

On our platform

This guide assumes no prior expertise — just a hosting account, a browser, and 45 minutes of setup of attention. Every instruction works on our platform exactly as written, and translates to any standard cPanel host.

One promise before starting: nothing in this guide is irreversible. Where a step could bite, we say so and give the undo.

The shape of the job

Start to finish, you'll repository first, clone on the server, deploy by pull, automate the pull and keep rollback one command away.

None of the stages requires code or a terminal unless the guide explicitly says so — and where it does, the exact commands are given. The full step-by-step sits below; the surrounding sections cover the context that makes it stick.

The mistake almost everyone makes

Committing credentials and config secrets to the repository — the .env file that reached a remote repo is compromised by definition; secrets live outside version control (ignored files, environment variables) from commit one.

It's worth internalising because it's not a rare edge case — it's the single most common way this task generates a support ticket. Knowing it in advance converts the whole job from risky to routine.

The pro tip worth stealing

Tag releases (v1.0.1 style) rather than deploying from a moving branch — rollback targets become named and deliberate, and 'what's live right now' always has an exact answer.

Small habits like this are the real difference between people who find hosting easy and people who find it stressful — the tools are identical; the workflow isn't.

How HostingAlly makes this easier

Several steps in this guide exist because hosting historically made you do them — on our plans, SSL issues itself, backups run daily without being asked, and one-click installers replace manual setup entirely. What remains is the genuinely-yours part of the task.

And when a step misbehaves anyway, support answers around the clock — with the actual fix, not a knowledge-base link and a shrug. Half our best guides started as patterns in the tickets.

A programmer writing code against a hosted server environment

The platform this guide assumes

Every walkthrough in our Learning Hub is tested on the platform we actually run — cPanel, LiteSpeed, NVMe, one-click installs — so instructions match your screen instead of gesturing at it.

Support is answered by real people around the clock — including the questions other hosts call out of scope.

  • Step-by-step, tested as written
  • The gotcha flagged before you hit it
  • Automation covers the boring steps
  • 24/7 support if you get stuck

Why HostingAlly

Every plan includes this, whatever you pay

Automation where it belongs

SSL, backups and installs run themselves here — the guide covers only what's genuinely yours to do.

No jargon tax

Terms are explained in place or linked to the glossary — nothing assumes you already know.

Help on standby

Stuck at step three at midnight? Support answers around the clock, mid-guide included.

The undo is always named

Where a step could bite, the guide says so and gives the reversal.

Scoped honestly

Push-to-deploy replacing drag-and-drop forever is a advanced-level task — this guide budgets 45 minutes of setup and says which steps the platform absorbs.

Written from real tickets

Our guides come from the support desk — the gotchas are the ones people actually hit.

Getting Started

How to get going

  1. 1

    Repository first

    The site's code in Git with a sane .gitignore (no secrets, no uploads directory) — deployment discipline starts with repository discipline.

  2. 2

    Clone on the server

    Over SSH, clone into the document root (or a releases directory) — the server becomes a checkout, and its state becomes knowable.

  3. 3

    Deploy by pull

    git pull on the server updates to the pushed state — two commands (local push, server pull) replacing the file-picker archaeology of FTP.

  4. 4

    Automate the pull

    A webhook endpoint or post-receive hook triggers the pull on push — push-to-deploy proper, with the deploy script also running builds where needed.

  5. 5

    Keep rollback one command away

    git checkout of the previous tag reverts the site in seconds — the capability that changes deployment psychology entirely.

Included

What's covered on our plans

  • Email accounts on your own domain
  • Staging environments for risk-free changes
  • WordPress Toolkit with automatic updates
  • Free website migration handled by our team
  • 30-day money-back guarantee on hosting plans
  • Daily automatic backups with self-service restores
  • Spam and virus filtering on every mailbox
  • Softaculous one-click app installer
  • NVMe SSD storage as standard
  • Webmail plus IMAP, POP and SMTP access

FAQ

Your questions, answered

Does Git deployment work on shared hosting?

Yes — our plans include Git and SSH, so clone-and-pull works exactly as on a VPS. The hook automation options vary by environment; the core workflow (push, pull, rollback) is fully available.

What about the database and uploads — does Git handle those?

No — Git versions code, not data. Databases follow their own backup/migration path, and uploads sync separately (rsync or stay server-side). The trio (code via Git, data via backups, media via sync) covers the whole site deliberately.

Where is your company based?

HostingAlly is a trading name of Fairdeal Renovations Limited, a company registered in England and Wales — a real, verifiable business with published terms under English law, which is worth checking about any host before you hand them your domain.

What happens to my data if I cancel?

Your site and files remain yours — download a full backup from the panel any time, before or during cancellation. Domains stay registered to you for their paid term and can transfer to any registrar after the standard 60-day window.

Can I host more than one website on a plan?

On the Pro tier and above, yes — multiple sites with their own domains, email and SSL under one account. If the extra sites belong to clients rather than you, reseller hosting gives each one proper isolation instead.

How long does it take to get started?

Minutes — hosting activates on payment, the domain (free for year one on annual plans) connects immediately, and one-click installers put WordPress or 400+ other apps live the same sitting. If you have an existing site, our team migrates it free, usually within 24 hours.

What does your 24/7 support actually cover?

Real people at every hour, and a scope that includes the practical questions — email setup, DNS, WordPress issues, restores — not just 'the server is up, ticket closed'. Pre-sales questions are welcome too; ask us something difficult and judge the reply.

Planning to switch hosts? Grab the checklist here.

The steps that keep a site migration dull rather than dramatic: what to back up first, how to shift email across without losing a single message, when to touch DNS, and the two mistakes behind nearly every hour of downtime we come across.

One email carrying the checklist, plus the odd bit of hosting advice. Unsubscribe whenever you want: see our privacy policy.

Get online without the games.

Free SSL, free migration, honest renewals and 24/7 human support. That's the whole pitch.

View Magento Hosting plans