Skip to content
DeveloperPDFImagesFinanceUtilitiesLearnGamesWeatherCurrency
Sign in
  1. Learn
  2. Git

Git

Understand what a commit really is, and get yourself out of the states that usually cause panic.

For anyone who uses Git by copying commands and would rather know what they do. Assumes you have committed something before. The commands are the same on any platform.

4 lessons · about 10 minutes

Start: What a commit actually is

Practise all 8 questions

  1. 1What a commit actually isA commit is a full snapshot with a parent, not a list of changes.2 min
  2. 2Branches are a pointer, and that is allA branch is a movable label on a commit, which is why branching costs nothing.2 min
  3. 3Merge and rebase: two ways to catch upMerge records what happened; rebase rewrites it to look tidier.3 min
  4. 4Undoing things without losing workMost Git accidents are recoverable, and the safe commands are the ones that add rather than rewrite.3 min

Every tool you need, in one fast and private workspace. Tools run in your browser; no ads, no trackers.

Workspaces

  • Developer
  • PDF
  • Images
  • Finance
  • India
  • Utilities
  • Live
  • Learn
  • Play

Categories

  • All tools
  • Calculators
  • India Tools
  • Developer Tools
  • Everyday Utilities
  • PDF & Documents
  • Image Tools
  • Device Tests
  • Gaming Tools
  • Charts & Graphs
  • Vehicle & Travel
  • Home & Everyday
  • Audio & Video
  • Study Calculators
  • Productivity
  • Business Documents
  • Science & Engineering
  • Games

Resources

  • About
  • Privacy
  • Terms
  • Contact
  • Your data

Free · Tools run in your browser · Accounts optional · © ToolsDev

HomeDeveloperToolsFinanceLearn