Git 常用操作

撤销

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'

Git - 凭证存储 (git-scm.com)

上一篇:pycharm中working directory设置


下一篇:MLP(SGD or Adam) Perceptron Neural Network Working by Pytorch(including data preprocessing)