Module 12 of 12

Advanced Git & Security

Lessons

About This Module

You now know how to work with Git every day. This final module is about working with it like an expert and keeping your code safe. Advanced Git gives you the tools to handle tricky situations with confidence: tidy up your history with interactive rebase, move a single fix between branches with cherry-pick, and rescue seemingly lost work with the reflog.

Then you'll turn to security. Git hooks run scripts automatically before a commit, so mistakes such as leaked passwords and API keys are caught before they ever leave your machine. Signed commits earn the green Verified badge on GitHub and prove that a change really came from you. Finally you'll tour the protections GitHub provides for free: secret scanning, Dependabot and code scanning. Habits like these are what separate a hobby project from professional software.

Watch the lessons in order, then put everything together in the course Projects.

Lessons

4 videos
01

Advanced Git Tools: Interactive Rebase, Cherry-Picking, Reflog, and More

A freeCodeCamp course by Tobias Günther, co-founder of Tower, covering the power tools of Git: interactive rebase to clean up history, cherry-picking individual commits, the reflog for recovering lost work, submodules, and ways to search your history.

02

Git Pre-Commit Hooks to Assist with Secure Coding Practices

See how Git hooks run checks automatically before a commit is created, and how a pre-commit hook can help you follow secure coding practices and stop problems before they reach your repository.

03

Signing Your Commits in GitHub: Getting the Verified Badge

Learn why commits can be signed, how to set up a key, and how to get the Verified badge on your commits so others can trust that they really came from you.

04

GitHub Security for Beginners: Code, Secrets & Dependencies

An ExamPro lesson from the GitHub Foundations series on GitHub’s core security features: code scanning, secret scanning, Dependabot, dependency review and repository security settings.