Git · Beginner

Git & GitHub Essentials for Developers

Learn commits, branches, collaboration and safe change management with common Git workflows.

Version control lets you understand how a project changed and coordinate work with others. Keep commits focused and write messages that explain intent.

What you will learn

  1. Start and inspect a repository
  2. Branches and merging
  3. Remote collaboration
CHAPTER 01

Start and inspect a repository

Initialize a repository once, review staged changes before committing, and keep secrets or machine-generated files out of version control.

git init
git status
git add .
git commit -m "Set up project"
CHAPTER 02

Branches and merging

Work on feature branches so changes are reviewed before merging into the main branch. Resolve merge conflicts carefully.

git switch -c feature/contact-page
git add . && git commit -m "Create contact page"
git switch main
git merge feature/contact-page
CHAPTER 03

Remote collaboration

Push branches, create pull requests, request feedback and keep your branch current. Avoid force pushing over collaborators without agreement.

git remote add origin https://github.com/you/project.git
git push -u origin feature/contact-page

Practice the concepts

Use a related utility to experiment, check examples, and build a small project.

Explore developer utilities ↗