beginner

Getting Started with Git and GitHub

By SkillMenzo Admin · 23 Jul 2026 · 1 min read

If you write code, you need version control. Here's everything you need to get productive with Git and GitHub today.

Initializing a Repository

git init
git add .
git commit -m "Initial commit"

Connecting to GitHub

git remote add origin https://github.com/your-username/your-repo.git
git push -u origin main

The Daily Workflow

git status
git add .
git commit -m "Describe your change"
git push

Branching

git checkout -b feature/new-thing
# ...make changes...
git push -u origin feature/new-thing

Then open a Pull Request on GitHub to merge your branch back into main.

A Few Habits Worth Building

  • Commit small, logical changes with clear messages.
  • Pull before you push to avoid conflicts.
  • Never commit secrets or .env files — use .gitignore.

Git has a learning curve, but these commands will cover 90% of your daily work.