Category: Command Reference


Revert many commits in git

Log­i­cally speak­ing, the sim­plest way to revert sev­eral com­mits in git with­out los­ing com­mit his­tory is by cre­at­ing a new com­mit that rep­re­sents the revert. Note that its NOT a good prac­tice 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 direc­tory in a local sys­tem. This opens other oppor­tu­ni­ties 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 mean­ing­ful com­mit mes­sages that help you fig­ure out things later. Some­times I use start my com­mit mes­sage with the string ‘wip’ which stands for work in progress and to…