Hacker News new | past | comments | ask | show | jobs | submit login

I trully believe that no one should use "git reset --hard" unless really know what he is doing (understand for beginer).

This is why, I aliased an "uncommit". You can see the details in this article[1] I had written for my friend who were learning git.

usage:

    git uncommit 3
effect: add another point in the history where it is said you get back 3 commit in time. Which is better in most case than modifying the history when you want to push it.

[1]: http://yannesposito.com/Scratch/en/blog/2009-11-12-Git-for-n...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: