Skip to content

Why is Git so incredible?

Published: at 11:00 PM

I believe that Git is brilliant because it allows developers to work locally at will, and synchronize centrally only as needed. Making a new commit is like opening an entry within the history so you can get back to it whenever required.

Something that I recently learned about Git is that you can edit your last commit if haven’t pushed it to a remote repository yet using:

git commit --amend -m "an updated commit message"

Another cool action that I learned is git stash which temporarily shelves changes you’ve made to your working copy so you can work on something else, and then come back and re-apply them later on. It’s useful when you are in the middle of something and need to quickly switch to another context to work on for a while.