更新git操作
This commit is contained in:
@@ -14,4 +14,9 @@
|
||||
- git checkout main #切换到 main 分支
|
||||
- git merge dev #令将分支dev合并到 main 分支
|
||||
- git merge --continue #解决合并冲突(如果需要)
|
||||
- git add . && git push origin main # 正常更新main分支到线上
|
||||
- git add . && git push profile main # 正常更新main分支到线上
|
||||
|
||||
### 远程文件强制覆盖本地
|
||||
- git fetch profile
|
||||
- git checkout your-branch-name # 确保你在正确的分支上
|
||||
- git reset --hard profile/your-branch-name # git reset --hard profile/master
|
||||
|
||||
Reference in New Issue
Block a user