8 Git Commands You Should Know
56mIntermediate2022-11-09
Authors

Ronnie Sheer
Software Developer and Instructor
Course details
If you’re a software developer, you probably already know that Git is one of the most useful version control systems out there. But while most developers have mastered the basics of Git, it can be a bit harder to take your skills to the next level and become an advanced Git user. In this course, instructor Ronnie Sheer shows you how to make the move from intermediate Git developer to the realm of finely tuned, source control expert.
Learn eight power-user Git commands that can save you time, prevent bugs, and more. Find out how to increase your productivity as well as minimize your moments of frustration. Ronnie walks you through a few basic tricks like stashing and adding changes, and then turns to more advanced techniques, such as undoing commits, reverting, and setting up precommit hooks. Test out your new skills with Git-command challenges along the way.
This course is integrated with GitHub Codespaces, an instant cloud developer environment that offers all the functionality of your favorite IDE without the need for any local machine setup. With GitHub Codespaces, you can get hands-on practice from any machine, at any time—all while using a tool that you’ll likely encounter in the workplace. Check out the “Using GitHub Codespaces with this course” video to learn how to get started.
Learn eight power-user Git commands that can save you time, prevent bugs, and more. Find out how to increase your productivity as well as minimize your moments of frustration. Ronnie walks you through a few basic tricks like stashing and adding changes, and then turns to more advanced techniques, such as undoing commits, reverting, and setting up precommit hooks. Test out your new skills with Git-command challenges along the way.
This course is integrated with GitHub Codespaces, an instant cloud developer environment that offers all the functionality of your favorite IDE without the need for any local machine setup. With GitHub Codespaces, you can get hands-on practice from any machine, at any time—all while using a tool that you’ll likely encounter in the workplace. Check out the “Using GitHub Codespaces with this course” video to learn how to get started.
Skills covered
GitVersion ControlGitHubDevOps ToolsDevOpsSoftware Development ToolsOpen SourceSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Git superpowers
- 02 - What you should know
- 03 - Setting up for Git superpowers
- 04 - Using GitHub Codespaces with this course
- 05 - Using the exercise files
1. Useful Tricks
- 06 - Learn to stash
- 07 - Three ways to add changes to Git
- 08 - Challenge - Partial add
- 09 - Solution - Partial add
2. Mistakes and Fixes
- 10 - Pushing code explicitly
- 11 - Undoing a commit
- 12 - Challenge - Rename commit and move to a different branch
- 13 - Solution - Rename commit and move to a different branch
3. Commitments
- 14 - Pre-commit
- 15 - Log
- 16 - Amend, revert
- 17 - Challenge - change, commit, revert
- 18 - Solution - change, commit, revert
4. The Magic
- 19 - Open code editor with .
- 20 - Challenge - Fork a repo and code
- 21 - Solution - Fork a repo and code
Conclusion
- 22 - Next steps
Related courses
- Advanced Bitbucket Pipelines: Automating Deployments and Managing Third-Party Integrations
- Eclipse Essential Training (2021)
- SketchUp: Concept Drawings with Photoshop
- Object Oriented Programming with C# (2018)
- Making Hybrid Teams Work
- CCSP Cert Prep: 2 Data Security
- Microsoft 365 Teams Administrator Associate Cert Prep (MS-700): Plan, Configure, and Deploy
- Avoiding Phishing Scams
Related learn paths
- Getting Started with Continuous Integration / Continuous Delivery (CI/CD)
- Build Your Laravel Skills
- Working with Data: Engineering, Integration, and MLOps for AI
- Succeed as a Remote Software Developer
- Advance Your Skills as a Django Developer
- Build Your Analytical Skills with Statistical Analysis
- Become a Blockchain Developer
- Prepare for the CompTIA Data+ (DA0-001) Exam