All Stories

Unstaging Git commits

There are certain scenarios where you need to unstage local Git commit changes. As everything with Git, there are multiple angles from which you can approach almost anything.

In Git, Oct 16, 2022

Unstaging files in Git

Unstaging files in Git is closely related to restoring deletes files in Git though. Let’s explore few possible options.

In Git, Oct 15, 2022

Install Yarn on Amazon Linux 2

As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.

In Yarn, AWS, Amazon Linux 2, Oct 14, 2022

Move Git branch pointer to different commit w/o checkout

Working with Git on a daily basis could lead to some special scenarios now and then. This post is all about manipulating the Git branch pointer to different commit w/o checking out.

In Git, Oct 14, 2022

Recovering from a Git detached HEAD

Simply put, a detached HEAD is a Git state that occurs only when you checkout a commit. See Checkout a specific Git commit. In a normal state, HEAD points to a branch name. Under the ...

In Git, Oct 13, 2022

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

How to list merge commits for a specific Git branch

Here’s a neat Git command that might help you with listing merge commits for a specific Git branch.

In Git, Oct 12, 2022

Git cherry-pick multiple commits

In one of the previous Git posts I wrote about cherry picking commits in Git. Today we are going to see how we could do the same but instead of cherry-picking a single commit, we are ...

In Git, Oct 11, 2022

Install Java 8 on Amazon Linux 2

As a distinction from Java 11, OpenJDK 8 package can be found under default yum repositories. Let’s install Java 8 on Amazon Linux 2.

In Java, AWS, Amazon Linux 2, Oct 10, 2022

List merged / unmerged branches in Git

Here’s another nugget on how to list merged and unmerged Git branches. Personally, I don’t find it much useful, but who knows. Maybe you need to do a cleanup by removing every merged ...

In Git, Oct 10, 2022