paint-brush
Git Reset 101by@zspajich
5,320 reads
5,320 reads

Git Reset 101

by Zvonimir Spajic5mNovember 18th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

<em>Reset is probably one of the least understood </em><a href="https://hackernoon.com/tagged/git" target="_blank"><em>git</em></a><em> 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 </em><a href="https://hackernoon.com/tagged/command" target="_blank"><em>command</em></a><em> 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 </em><a href="https://hackernoon.com/https-medium-com-zspajich-understanding-git-data-model-95eb16cc99f5" target="_blank"><em>Understanding Git</em></a><em> series for more details of some stuff presented here.</em>

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Git Reset 101
Zvonimir Spajic HackerNoon profile picture
Zvonimir Spajic

Zvonimir Spajic

@zspajich

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite