A simple solution to revert a git commit that has been pushed to master branch

A simple solution to revert a git commit that has been pushed to master branch

Today I will tell you a different git story.Committing mistakes are far better than committing suicide. Is not it? There’s a girl named Silvia, she was brilliant but sometimes she made silly mistakes while committing her files. She always used to face challenges while committing. One day she made a huge mistake on a production ready branch. She committed her recent changes into a master branch instead of dev branch, the branch where all the developments occurs.

Today I will tell you a different git story.

Committing mistakes are far better than committing suicide. Is not it?

There’s a girl named Silvia, she was brilliant but sometimes she made silly mistakes while committing her files. She always used to face challenges while committing. One day she made a huge mistake on a production ready branch. She committed her recent changes into a master branch instead of dev branch, the branch where all the developments occurs.

She was so nervous, she informed me that mistake of her.

As being her lead it was my responsibility to correct her mistake . So I told her to undo that commit using git reset.

She was not sure what will be the command for that. Again she asked me, I pinged her this command

Image for post

illustration git commit coding

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

7 Best Practices in GIT for Your Code Quality

Git plays a significant role in software development. It allows developers to work on the same code base at the same time. Check out 7 best practices for Git.There is no doubt that Git plays a significant role in software development. It allows developers to work on the same code base at the same time. Still, developers struggle for code quality.

Best Practices for Using Git

Git has become ubiquitous as the preferred version control system (VCS) used by developers. Using Git adds immense value especially for engineering teams where several developers work together since it becomes critical to have a system of integrating everyone's code reliably.

How to Use Git Rebase to Squash a Sequence of Commits to a New Base Commit

Why do we rebase? Rebasing is one of the two Git processes of integrating changes from one branch to another. How to Use Git Rebase to Squash a Sequence of Commits to a new Base Commit. Rebasing is the process of moving or combining (i.e. squashing) a sequence of commits to a new base commit.

Static Code Analysis: What It Is? How to Use It?

Static code analysis is a method of debugging by examining source code before a program is run. It's done by analyzing a set of code against a set (or multiple sets) of coding rules. Static code analysis and static analysis are often used interchangeably, along with source code analysis.

Ten Commandments of Git Commit Messages

The Ten Commandments of Git Commit Messages is an attempt to unify Conventional Commits 1.0.0, the 7 rules of commit messages, and the format used by git itself, GitHub, and GitLab.