Saving your back in git

Here is a usefull collection of git commands that I keep coming back to, it saved me countless times when I was in tricky situations. I have finally decided to compile them here, I hope it can help you too! Table of Contents Rename a local branch Delete a remote tag Check out a remote branch List all the files in a commit Remove files from a commit Undo a git...
📘️ Read article

How to clean up local git branches matching a name

Introduction If you are like me, and you are in an project using git, you probably create or use a LOT of branches. There can be times when it’s hard to keep track of all of them and they pile up in your project’s folder until you see 100 of them. Listing branches and deleting them A word of caution: Deleting branches is a definitive act, you cannot go back, especially if the...
📘️ Read article

Enabling any text editor with git

I’m joining the party a little late, but I’ve started working with git and GitHub, both for this website, and coincidentally at work for my current project.This is a quick article about using your favorite editor to write your commit messages. State of the art If you happen to work with git (if not, you should download and it and play with it, it’s marvelous), you probably need to enter a commit message at some...
📘️ Read article