Sign in

Full-Stack Web Developer

Throughout the story will be referring to some important commands such as checkout, revert, and reset

Photo by Agê Barros on Unsplash

Just think You’re almost in a time machine and you can move to your past work whenever you want. You can go back in time to that time when you made a commit. Here I’m talking about how to undo or discard the things in git. Throughout the story will be referring to some important commands such as checkout, revert, and reset. Those commands allow you to go back in time and check all the versions of the project.

Let's start with rewriting a commit message…

Suppose you’ve made a commit and later on, you realize that the commit message…


If one person could write and understand all of the code in a project then there would never be any conflicts. The reality is that most systems are large and complex and require several teams of developers to create and maintain all of the code needed to support those systems.

Branching can help make your life easier as you work on projects both big and small. Maybe you started making a bug fix on Master but realized it wasn’t so quick and you need to do something else on Master. …


Git and GitHub are your real friends, this article is just to make yourself comfortable with them

At first-look, Git can seem like a complicated, possibly intimidating tool. But if you look closer, you’ll see that it’s just a system that stores files. However, unlike a regular file server which only saves the most recent version of a file, Git keeps track of all the different versions that we create as we save our changes.

On the other hand, GitHub is a web-based Git repository hosting service. On top of the version control functionality of Git. …

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store