Git 提交代码流程
1. git stash
把本地修改过的代码 暂存在栈中
2. git pull
更新远端服务器代码到本地
3. git stash pop
将栈中的代码合并到代码中
4.git add
提交本地代码到暂存区
5. git commit
代码从暂存区提交到本地仓库
6. git push
文件从本地仓库提交到远程仓库
git 撤回提交远端的版本
1. git log 查找commit的版本号
2. git reset --hard <版本号> , 撤回到我们需要回退的版本
3. git push origin master --force 重新提交