1.查看工程提交历史
命令:git log
2.把工作区(Working Directory)中的所有文件添加到缓存区 (Staging Area)
命令:git add.
3.把缓存区 (Staging Area)中文件提交到本地版本库(Local Repository)
命名:git commit -m "FS23调试初版"
4.查看当前远程库信息
命令 :git remote -v 查看当前版本库信息
git remote add master https://github.com/user/repo.git 添加远程仓库
5.从本地版本库(Local Repository) 提交到 远程仓库(Remote Repository)
命令 :git push S32K3 master 可选 -- force(如果是第一次需要强制上传)
6.从本地版本库(Local Repository) 回滚
命令:git log --oneline 查看提交历史
git reflog 查看恢复及提交记录
git reset --hard 哈希值 直接硬重置到指定版本