All things Git

How can I find deleted stuff in Git?

September 2, 2021 - 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

September 2, 2021 - 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

September 2, 2019 - 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

January 29, 2019 - 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

January 26, 2019 - 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

January 15, 2019 - Estimated 7 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…