An in-depth exploration of advanced git commands for developers who already know the basics (clone, checkout, pull, push). This tutorial covers git lfs for handling large files, git bisect for tracking down bugs through repository history, git worktree for managing multiple working directories, and git reflog for reference management. It also explains lesser-known features like git bundle for offline repository transfers, interactive staging with git add -p, and automated workflows using git hooks.
This masterclass increases in complexity gradually, demonstrating practical examples of each command and explaining their common use cases. All commands can be followed along in a test repository.
▬▬▬▬▬▬ Resources & References 📕 ▬▬▬▬▬▬
git: https://github.com/git/git
git_bisect repo: https://github.com/glich-stream/git_bisect
▬▬▬▬▬▬ Chapters 🕐 ▬▬▬▬▬▬
00:00:00 Intro
00:00:51 git/git fork repository setup
00:02:35 Removing the git push URL
00:04:07 How to use git restore
00:09:46 How to use git bundle
00:14:58 What is git LFS & how to use it
00:23:13 How to use git bisect
00:34:16 git worktrees as an alternative to switching branches
00:38:38 git hooks: automate git activities
00:45:55 Interactive patch staging with git add --patch
00:51:12 Patch management with git diff & git apply
00:54:29 How to use git reflog
00:58:50 Repository analysis with git for-each-ref
01:02:31 git history rewrite with git filter-branch & git filter-repo
01:12:44 Conclusion
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
- Discord: https://glich.stream/discord
- Twitter: https://twitter.com/bassemdy
- GitHub: https://github.com/link-
- LinkedIn: https://www.linkedin.com/in/bassemdghaidy
- Facebook: https://www.facebook.com/BassemDy
- Blog: https://blog.bassemdy.com
▬▬▬▬▬▬ Support the channel 💜 ▬▬▬▬▬▬
- Become a member of the channel: https://glich.stream/yt_members
#glichstream #softwareengineering #programming #coding