How-to · Advanced · 45 minutes of setup
How to Deploy a Site With Git
Push to deploy, and put the drag-and-drop routine behind you for good — a practical, jargon-free walkthrough with the classic mistake flagged before you make it.
Straight answer first
In a line: push to deploy, and put the drag-and-drop routine behind you for good — a advanced-level task that takes 45 minutes of setup.
The walkthrough below covers every step, the mistake most people make, and the shortcut worth keeping. On Hosting Seller plans several of these steps are already done for you, and we say where.
Written by the Hosting Seller staff · Checked 1 August 2026
Advanced
Skill needed
5
Stages to finish
Free
Help included
Tested
On our own kit
This guide assumes no expertise at all — just a hosting account, a browser and 45 minutes of setup of attention. Every instruction works on our platform exactly as written, and carries over to any standard cPanel host.
One promise before you start: nothing in this guide is irreversible. Where a step could bite, we say so and give you the undo.
The shape of the work
From start to finish, you will start with the repository, clone it on the server, deploy with a pull, automate that pull and keep rollback to one command.
No stage needs code or a terminal unless the guide says so outright, and where it does, the exact commands are printed. The full step-by-step sits below; the sections around it give the context that makes it stick.
The mistake nearly everyone makes
Committing credentials and config secrets to the repository. An .env file that reached a remote repo is compromised by definition. Secrets live outside version control — ignored files or environment variables — from the very first commit.
It is worth learning because it is not some rare edge case — it is the single most common reason this task turns into a support ticket. Knowing it up front turns the whole job from risky into routine.
The trick worth borrowing
Tag your releases, v1.0.1 style, rather than deploying from a moving branch. Rollback targets become named and deliberate, and 'what is 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 working method is not.
How our platform shortens this
Several steps in this guide exist only because hosting historically made you do them. On our plans SSL issues itself, backups run daily without being asked, and one-click installers replace the manual setup entirely. What is left is the part that is genuinely yours.
And when a step misbehaves anyway, support answers at any hour with the actual fix, not a knowledge-base link and a shrug. Half our best guides began life as a pattern in the ticket queue.

The hosting this guide is written against
Every walkthrough on our how-to shelf is tested on the platform we actually run — cPanel, LiteSpeed, NVMe, one-click installs — so the instructions match your screen instead of gesturing vaguely at it.
Real people answer the counter at any hour, including the awkward questions other hosts wave off as out of scope.
- Step by step, tested exactly as printed
- The snag flagged before you reach it
- The dull steps are already automated
- People on hand at any hour if you stall
Why Hosting Seller
On every plan, as standard
Automation where it belongs
SSL, backups and installs run themselves here, so the guide covers only what is genuinely yours to do.
No jargon toll
Terms are explained where they appear or linked to the glossary — nothing assumes you already know.
Help on the counter
Stuck on step three at midnight? Support answers at any hour, mid-guide included.
The undo is always named
Where a step could bite, the guide says so and tells you how to put it back again.
Scoped honestly
Push to deploy, and put the drag-and-drop routine behind you for good 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 off the support desk, so the snags flagged here are the ones people genuinely hit.
First Steps
From choosing to live
- 1
Start with the repository
The site's code in Git with a sensible .gitignore — no secrets, no uploads directory. Deployment discipline begins as repository discipline, every time.
- 2
Clone it on the server
Over SSH, clone into the document root or into a releases directory. The server becomes a checkout, which means its exact state is knowable at any moment.
- 3
Deploy with a pull
git pull on the server brings it up to whatever you pushed. Two commands — push locally, pull on the server — replace all the file-picker archaeology of FTP.
- 4
Automate that pull
A webhook endpoint or a post-receive hook triggers the pull whenever you push. That is push-to-deploy proper, and the deploy script can run builds while it is in there.
- 5
Keep rollback to one command
git checkout of the previous tag puts the site back in seconds. That capability changes how deployment feels more than anything else on this list.
In the Box
Packed with every plan
- Mailboxes that carry your own domain name
- Staging copies so changes get tested before they go live
- WordPress Toolkit, with updates applied for you
- Site migration done for you by our staff, at no charge
- A 30-day money-back guarantee on every hosting plan
- A backup taken daily, with restores you run yourself
- Spam and virus filtering fitted to every mailbox
- The Softaculous installer for one-click application setup
- NVMe SSD storage on every shelf, not just the top one
- Webmail in the browser plus IMAP, POP and SMTP for your own client
Across the Counter
The questions we get asked most
Does this work on shared hosting?
Yes. Our plans include Git and SSH, so clone-and-pull behaves exactly as it does on a VPS. The hook automation options vary with the environment, but the core workflow — push, pull, roll back — is fully available.
What about the database and the uploads folder?
Git versions code, not data. Databases follow their own backup and migration path, and uploads sync separately with rsync or simply stay on the server. Code via Git, data via backups, media via sync — three routes, deliberately.
Who actually runs the company?
Hosting Seller is a trading name of Bohzo Ltd, a company registered in England and Wales — a real business with a public record and terms published under English law. Looking that up is worth doing about any host before you hand over your domain.
What happens to my files if I leave?
The site and the files stay yours. Pull a full backup from the panel whenever you like, before or during cancellation. Domains remain registered in your name for the term you paid for and can move to any registrar once the standard 60-day window has passed.
Can one plan hold more than a single website?
From the Pro tier upward, yes — several sites, each with its own domain, mailboxes and certificate, all under one account. If those extra sites belong to clients rather than to you, reseller hosting is the better fit: it gives each one proper separation.
How quickly can I be up and running?
Minutes, not days. The account opens the moment the order clears, the domain — free for year one on annual plans — attaches straight away, and the one-click installer puts WordPress or any of 400+ applications on the page before you leave your chair. Already have a site elsewhere? Hand it over and we move it free, usually inside a day.
What does round-the-clock support actually stretch to?
People at the counter at every hour, and a scope that takes in the practical work: mailbox setup, DNS records, WordPress trouble, restores. Not 'the server responds, ticket closed'. Ask us something hard before you order — the reply is a fair sample of what you would get afterwards.
Read next
How to Test Your Website Speed
Measure honestly, so the work that follows aims at facts rather than hunches — beginner level, about 20 minutes.
How to Read Your Website Statistics
Read your traffic straight from the server's own logs, with nothing to install — beginner level, about 20 minutes.
Magento Hosting
Hosting with the memory and PHP room Magento genuinely asks for.
OpenCart Hosting
OpenCart in one click, on PHP set up for storefronts, with free SSL and staging.
Packing up and moving host? Take our checklist.
A plain running order for a move nobody notices: what to copy first, how to carry email across without dropping a single message, when to point DNS, and the two slips behind nearly every hour of downtime we get called about.
Get online, with no games at checkout.
Free SSL, a free move in, renewals charged at the order price, and human support around the clock. That is the whole offer.
See the plans