blog/content/chs-git.md

407 B

Title Date Author Category Header_Cover
Some git tricks 2019-04-22 17:00 Fabrice cheat sheets images/cover_water.jpg

Some git tricks I use from time to time and that I forgot everytime…

Reset master to origin/master:

git co origin/master -B master

Another useful trick is git commit -v, it allows reviewing your changes before committing.

Example