git 學習彙總

生成gitignore 文件: https://gitignore.io/

git 版本回退

git reset --hard HEAD^

上一個版本就是HEAD^,上上一個版本就是HEAD^^,固然往上100個版本寫100個^比較容易數不過來,因此寫成HEAD~100git

相關文章
相關標籤/搜索