|
|
|
|
|
by p4bl0
3589 days ago
|
|
I have this alias in my ~/.gitconfig: cancel = reset --soft HEAD^
I don't want an alias to hard reset, it seems to dangerous and a good way to lose some work. However a soft reset like this allow me to cancel the last commit and add an omitted file, or remove one from the commit, or simply to correct the commit message easily. |
|