Intern Track Roadmap

Git init & local configuration

This course covers starting and configuring a Git repository on your own machine. It explains why version control replaces folders of renamed files, what git init creates inside the hidden .git folder, and how to set a default branch name. You set your author identity and useful defaults with git config across system, global and local scopes. You also write .gitignore patterns, inspect a repository with status, log and diff, separate work and personal identities with includeIf, and bootstrap the Git history of a new Rails project.

What you'll learn

  • ✓What git init creates and how the .git folder is organized
  • ✓Setting author identity, defaults and aliases with git config
  • ✓Writing .gitignore patterns and keeping secrets out of history
  • ✓Inspecting changes and history with git status, git log and git diff
  • ✓Switching identities per folder with includeIf
  • ✓Starting a Rails project's Git history with a first commit
Free preview · Lesson 1 3 min read

Why every project needs version control

Picture a project folder like this:

Read the full lesson free →

Curriculum

7 lessons
Type to start searching...