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

a) You can also use `git checkout -p` here that lets you selectively revert patches

I can also recommend these two aliases I have in my gitconfig:

    unstage = reset HEAD --
    undo = reset --soft HEAD^
`unstage` takes an argument and removes changes from the index (but keeps them in the file). `undo` undos the last commit and puts the changes into the index. Unstage you pass a file or `.` for all



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

Search: