All things Git

A gentle introduction to Git

Estimated 1 minute read

According to the Stack Overflow software developer survey for 2021 - 94.41% (50,563 out of 54,943) professional developers suggest that Git is a fundamental tool to being a developer. Objectives 🎉 At the end of this course you should be able to: ins…

Make sure Git knows about case-sensitive changes to your file names

Estimated 1 minute read

It's only peculiar if you don't understand it and for a while, I didn't understand it. It builds locally but then can't resolve component on Netlify. It started with me migrating my blog from Gatsby 3 to 4. I had neglected my blog for months so my e…

How to recover a file from another branch in Git

Estimated 1 minute read

Where branch can be any ref including a branch name, tag, HEAD. Thanks to this Stack Overflow reference.

How to see the contents of stashed changes in Git

Estimated 1 minute read

Where is the indexed location of the item in the stash. Find all items in the stash using:…

How to find text anywhere in your Git repository from the very beginning

Estimated 1 minute read

Stack Overflow - Search all of Git history for a string Stack Overflow - How to grep Git commit diffs or contents for a certain word

Why you will see the error 'Loading chunk \d+ failed'

Estimated 1 minute read

This includes cases where the file has been renamed. More Stack Overflow: , show all commits including merges

How to use a different email address in Git in sub directories

Estimated 1 minute read

I want to override my personal email address I use for Git with my work email address in my work directory without manually changing it each time.

How can I find deleted stuff in Git?

Estimated 7 minute read

I was working on an about module a few months ago. I wasn't satisfied with it so I deleted it with all its related files 😬 Now I need to recover parts of this data that I had so conveniently discarded. 🤦‍♀️ I can't remember the exact location of the fi…

A custom alias for a pretty Git log with a graph

Estimated 3 minute read

I have added a git alias for by editing the global config so that it is not localized to a specific git repository. I added the following below the section 👇 will now print a pretty colored summarized log with a graph to indicate branching and m…

Git aliases

Estimated 1 minute read

You can create Git aliases for long or repetitive commands which map to short cuts. This can make your workflow more efficient as it decreases the number of keystrokes involved. You create your alias using the Git config command which updates the Gi…

Working With Git Remotes

Estimated 4 minute read

I have a repository with two remotes. origin is my personal repository and bitbucket is by BitBucket repository. The nugget of this post is to push to both branches in one command. The git remote command lets you create, view, and delete connections…

Why I Create Atomic Commits In Git

Estimated 3 minute read

I wrote about crafting changes into small atomic commits using Git. It looked like there was some confusion. I want to share what I understand about atomic and monolithic commits and why I create atomic commits in Git. I got a question in Reddit by …

How To Craft Your Changes Into Small Atomic Commits Using Git

Estimated 8 minute read

Small, atomic commits makes it easier for code reviews, browsing the history and reverting changes. Life happens and commits can touch more lines and files than I want but the changes committed should be distinct. "Don't mix your apples with your to…

We use essential cookies to make our site work. With your consent, we may also use non-essential cookies to improve user experience and analyze website traffic. By clicking 'Accept', you agree to our website's cookie use as described in our Privacy Policy.