Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

8 Git Commands You Should Know

via LinkedIn Learning

Overview

Learn eight power-user Git commands that can save time, prevent bugs, increase productivity, and reduce frustration.

Syllabus

Introduction
  • Git superpowers
  • What you should know
  • Setting up for Git superpowers
  • Using GitHub Codespaces with this course
  • Using the exercise files
1. Useful Tricks
  • Learn to stash
  • Three ways to add changes to Git
  • Challenge: Partial add
  • Solution: Partial add
2. Mistakes and Fixes
  • Pushing code explicitly
  • Undoing a commit
  • Challenge: Rename commit and move to a different branch
  • Solution: Rename commit and move to a different branch
3. Commitments
  • Pre-commit
  • Log
  • Amend, revert
  • Challenge: change, commit, revert
  • Solution: change, commit, revert
4. The Magic "."
  • Open code editor with "."
  • Challenge: Fork a repo and code
  • Solution: Fork a repo and code
Conclusion
  • Next steps

Taught by

Ronnie Sheer

Reviews

Start your review of 8 Git Commands You Should Know

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.