Articles under category Git


Just now I used the desktop GitHub hand to remend a Revert, and the file was deleted. I made a Revert file on this submission again.

But I watched these two times, and there was no oval submission. I was itchy, X for a while.

Find the way to follow this person's own way, and withdraw this way in your own way.

 Git reset --hard <commit_id>

Commit_id is the form 44c7aa824b0f6383ad1eaf037185ea25cb77878f in log.
Use the desktop version of GitHub to omit the Sha code of 6 digits, and it can also be withdrawn.

There are two ways besides commit_id.

 --HEAD / / last submitted to 
--HEAD^ / / last submission.