Category: Command Reference

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...

Git clone another directory 0

Git clone another directory

Git not only lets you clone from a remote URL, but it also lets you clone from directory in a local system. This opens other opportunities of being able to share your code with...

Search git commit messages for a word 0

Search git commit messages for a word

You always want to write meaningful commit messages that help you figure out things later. Sometimes I use start my commit message with the string ‘wip’ which stands for work in progress and to...