推送步驟
1.查看分支,當(dāng)前分支前會(huì)有 * 號(hào)
git branch
2.提交代碼到緩存
git add .
3.提交注釋
git commit -m "注釋"
4.提交到prod分支
git push origin prod
若出現(xiàn)操作失誤,想要撤銷(xiāo)操作時(shí)
1.查看本地記錄
git reflog
2.找到想要回到的id執(zhí)行
git reset --hard 123456
1.查看分支,當(dāng)前分支前會(huì)有 * 號(hào)
git branch
2.提交代碼到緩存
git add .
3.提交注釋
git commit -m "注釋"
4.提交到prod分支
git push origin prod
1.查看本地記錄
git reflog
2.找到想要回到的id執(zhí)行
git reset --hard 123456