![]() ![]() Copies all the commits that exist in the local branch.A branch for that matter is nothing but a pointer to a single commit. For Git everything is about commits, a commit is an object that includes several keys such as a unique id, a pointer to the snapshot of the staged content and pointers to the commits that came directly before that commit. To understand how git works under the hood we need to take a step back and examine how Git stores its data. You will be surprised how the ‘force’ is actually with you □□ The push command In this tutorial, I will share my discoveries so you too can understand the usage and impact of this command on your project, learn new, safer alternatives, and master the skills of restoring a broken branch. This led me to research why is this command considered to be so harmful? Why does it even exist in the first place? and what happens under the hood? ![]() ![]() However, to me, it seemed very strange to put all my trust in Git with my projects and at the same time completely avoid using one of its popular commands. It is well known that using Git’s push -force command is strongly discouraged and considered destructive. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |