add git undo
This commit is contained in:
@ -7,3 +7,8 @@
|
|||||||
excludesfile = ~/.gitignore_global
|
excludesfile = ~/.gitignore_global
|
||||||
[pull]
|
[pull]
|
||||||
rebase = true
|
rebase = true
|
||||||
|
[alias]
|
||||||
|
undo = "!u() { \
|
||||||
|
NUM="${1:-1}"; \
|
||||||
|
git reset --soft HEAD~$1; \
|
||||||
|
};u"
|
||||||
|
Reference in New Issue
Block a user