Git and GitHub for beginners: the commands you need

Written by LitCareer · 12 Oct 2026 · 2 min read

Track your code, work with others and build a public portfolio, with the basic Git workflow explained.

Git and GitHub for beginners: the commands you need

Git versus GitHub

The basic workflow

  1. git init – start tracking a project folder, or git clone <url> to copy an existing repository.
  2. git status – see what has changed.
  3. git add <file> – choose changes to include in the next snapshot.
  4. git commit -m "Add login form validation" – save the snapshot with a clear message.
  5. git push – upload your commits to GitHub.
  6. git pull – get the latest changes from GitHub.

Branches

Branches let you work on a feature without disturbing the main code:

Good habits

Use GitHub as your portfolio

Pin your best projects, add a README with screenshots and setup steps, and keep your profile tidy. Recruiters for technical roles often look at GitHub profiles.

Your next steps

  • Learn init, add, commit, push and pull
  • Use branches and pull requests for new features
  • Never commit passwords or API keys
  • Pin your best projects with clear READMEs

General guidance for learning, not professional, legal or financial advice. Want help for your own situation? Book 1:1 career help.

More in Digital & tech skills

Keep learning