撤销
git reset --hard
还原自上次commit以来工作目录里文件的修改
Resets the index and working tree. Any changes to tracked files in the working tree since <commit>
are discarded.
存储凭证
# 临时
git config --global credential.helper cache
# 永久
git config --global credential.helper 'store --file ~/.my-credentials'