[Git] 强制使用远端仓库代码覆盖本地代码
2023-02-18 15:36:34 时间
当本地进行了commit操作 , 但是还没有push到远端的时候 , 这个时候pull是不能覆盖掉新commit的文件
需要先本地回退到上一个或指定版本后 , 再撤销掉暂存区代码
使用tortoiseGit的可视化操作更加直观
点击显示日志后 , 选中某一次提交的日志 ,重置到此
硬重置就是直接把代码也回退回去
然后再从新pull一下就可以了
相关文章
- GitHub车牌检测识别项目调研
- Linux基础-学会使用命令帮助
- Linux 基础-新手必备命令
- Linux 基础-文件及目录管理
- Linux 基础-文本处理命令
- Linux 基础-文件权限与属性
- Linux 基础-查看进程命令 ps 和 top
- Linux基础-查看和设置环境变量
- Linux 基础-查看 cpu、内存和环境等信息
- MongoDB从入门到实战之.NET Core使用MongoDB开发ToDoList系统(2)-Swagger框架集成
- MongoDB从入门到实战之.NET Core使用MongoDB开发ToDoList系统(1)-后端项目框架搭建
- MongoDB从入门到实战之MongoDB工作常用操作命令
- MongoDB从入门到实战之Docker快速安装MongoDB
- MongoDB从入门到实战之MongoDB快速入门
- MongoDB从入门到实战之MongoDB简介
- MongoDB安全加固,防止数据库攻击删除勒索威胁
- Docker安装MongoDB并使用Navicat连接
- OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown
- Visual Studio 2022 git error Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa
- Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解决的两种方式)