Git Blog

0

git-see the changes in a commit

To see the diff got committed in particular commit message use one of the following commands git show COMMIT OR git diff COMMIT^ COMMIT Further reading : git diff git show

0

Revert many commits in git

Logically speaking, the simplest way to revert several commits in git without losing commit history is by creating a new commit that represents the revert. Note that its NOT a good practice to revert...

0

Squash multiple commits into one

Premature commits happen all the time. And often you want to squash all those premature commit into one meaningful commit  to keep your commit history clean, easily readable and more meaningful. It’s quite easy to...

0

Git amend previous commit

Rewriting commit history with git Premature commits happen by accident more often than not. Sometimes you just missed adding a file or maybe you realized that you should have added a much more descriptive...

0

Export your git branch to a zip folder

Today I found myself in a situation where my git host was down and I wanted to share my project with a colleague. The easiest way to do so is to use the git...

0

What is a git bare repository and when to use it

A lot of times, I see questions about the difference between an ordinary git repository and a bare git repository. So I decided to quickly made up picture of the actual difference, you know the...