GIT命令使用
1.clone你的倉庫
2.已經存在.git文件夾
3.做修改
4.git status
5.git add "文件"
6.git commit -m "注釋"
7.git push -u origin master
切換版本:
1.git reset --hard HEAD^ 回到上一個版本
2.git reset --hard 1094a(commit_id)
git reflog
用來記錄每一次命令
鏈接:
Git教程or
git log
git checkout
推薦閱讀: