Over time, I’ve compiled a list of useful Git resources that have helped me understand and use Git effectively. This post serves as a reference for myself and others looking for guidance on Git commands, branching, merging, and more. If you’re interested in a practical collection of Git commands for everyday use, check out my Git Commands post, where I’ve listed essential commands and their use cases.

📌 Git Basics

🔀 Working with Branches

🔄 Fetch, Merge, and Rebase

🚧 Managing Tracked Files and Ignored Files

  • How can I make Git “forget” about a file that was tracked, but is now in .gitignore? - Stack Overflow
  • Git: Stop Tracking File After Adding to .gitignore (stackabuse.com)
  • Git update-index –skip-worktree, and how I used to hate config files - compiled successfully

⏳ Resetting, Reverting, and Cleaning History

🔥 Stashing and Advanced Git Usage

  • Git Stash and Git Rebase. When to use them and how to handle… - Sean LaFlam
  • Part 2: Stashing and Rebasing in Git - DEV Community
  • The Advanced Git Guide - Toptal

🛠 Miscellaneous Git Tricks

  • How to tidy up your merge requests with Git - GitLab
  • git - how to delete all commit history in GitHub? - Stack Overflow
  • How can I make git show a list of the files that are being tracked? - Stack Overflow Search: “git restore previous commit”
  • How do I revert a Git repository to a previous commit? - Stack Overflow
  • git reset --hard HEAD~4

What is Git fast-forwarding? - Stack Overflow


This list will continue to evolve as I explore and learn more about Git. I plan to update it regularly to keep it relevant.