#git #reset 101
▻https://hackernoon.com/reset-101-ba05d9e3f2c7?source=rss----3a8144eabfe3---4
Reset is probably one of the least understood git commands with the addition of having a bad reputation for being dangerous. There is a valid reason for both of these claims: yes, the reset command is a bit harder to understand and in some cases, it can be dangerous. But, it is not all that hard. So in this post, I will give my best to present you with a clear and distilled tutorial to the reset command. To make it short and not too overwhelming I have abstracted the non-essential details and simplified some things, but if you want to know more on git’s internal workings you can also check my Understanding Git series for more details of some stuff presented here.Git ThreesBefore we dive into the reset command we need to take a look at what is called the trees of git: Working Directory, (...)