如何高效撤销git操作?

alias如下:

alias nocmt='git reset --soft HEAD^'
alias noadd='git reset HEAD'
alias nochg='git checkout --'
alias nomore='git clean -fd'
alias nobranch='nobranch(){branch=$(git branch --show-current);git checkout master && git branch -d "${branch}";};nobranch $@'
posted @ 2019-12-06 21:05  futuretea  阅读(153)  评论(0编辑  收藏  举报