Skip to content
Development and deployment2 min read

What is GitHub?

Short answer

GitHub is an online platform that hosts Git repositories and adds collaboration tools such as pull requests, issue tracking and automation through GitHub Actions. Developers use it to store code, review it and deploy it to their servers.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What GitHub gives you
  2. Example: push an existing project to GitHub
  3. Things beginners mix up
  4. On ArabyHost

GitHub isn’t Git itself: it’s a service built around it. On your machine you use Git to record changes, then push them to GitHub, which stores them and shares them with your team. Microsoft acquired GitHub in 2018, and it hosts millions of open-source and private projects.

What GitHub gives you

Feature What it’s for
Repositories Storing code and its history, public or private
Pull requests Proposing changes and reviewing them before merging
Issues Tracking bugs and tasks
Actions Running tests and deployments automatically on every push
Webhooks Notifying an outside server when a push or release happens

Example: push an existing project to GitHub

After creating an empty repository on GitHub, run this inside your project folder:

git init
git add .
git commit -m "First commit"
git branch -M main
git remote add origin [email protected]:user/my-site.git
git push -u origin main

The [email protected]: URL authenticates with an SSH key. If you get Permission denied (publickey), the key isn’t on your account yet: see that error’s page.

Things beginners mix up

  • Fork vs clone: a fork is a copy of someone else’s repository inside your GitHub account; a clone is a copy of any repository on your machine.
  • GitHub Pages: hosts static sites only: no PHP, no database.
  • Public repositories: every file is visible to everyone, so never put an .env file or API keys in one.
  • GitHub doesn’t run your site: it stores the code; running it needs hosting.
  • Default branch name: new repositories start on main, while some older ones still use master: check which one you’re deploying.

On ArabyHost

You can deploy straight from GitHub: clone the repository with Git Version Control in cPanel (one click from the Araby Panel) and add a .cpanel.yml file at its root that lists the commands copying files into your site folder. The full steps are in the deploy from GitHub guide. AI/Developer plans also give you Git over SSH, and you can deploy from Claude or Cursor through Araby MCP. To run tests automatically before each deploy, read about CI/CD.

FAQ

Is GitHub free?

GitHub has a free plan that includes public and private repositories, with limits on some features such as GitHub Actions minutes. Current details are on GitHub's official pages.

Why won't GitHub accept my password on git push?

GitHub stopped accepting account passwords for Git operations over HTTPS in 2021. Use a personal access token or an SSH key instead.

Can I deploy from a private repository?

Yes. Add your server's public key to the repository as a read-only deploy key, so the server can pull the code without access to the rest of your account.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.