[Git] Use git add --patch for better commit history and mitigating bugs
2024-08-30 04:18:13
Let's split our changes into separate commits. We'll be able to check over our changes before staging them all from the terminal. Then, we'll see the positive effect it has on our commit history.
git add --patch
1. Then in the cmd, we can type 's' stands for splite the changes into chunks.
2. Then type 'q' stands for quite.
3. Add commit message for that part of changes
4. Then run git add --patch
5. Repeact 1-4 until all changes are included
最新文章
- 关于配置Spring框架的多个propertyConfigurer的问题
- realestate.cei.gov.cn
- 如何在安装32位Oracle客户端组件的情况下以64位模式运行
- OpenCV3编程入门笔记(1)图像载入、显示、保存、变换灰度图
- **php队列的实现思路和详细过程
- java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.String
- Discuz!提取文章标签
- css中em与px
- ThinkPHP的连贯操作方法中field方法
- Bootstrap-table使用记录(转)
- http-cookie、session、Token
- Adding a struct into an array(stackoverflow)
- python------模块定义、导入、优化 ------->;os模块
- JavaScript学习总结(二、隐式类型转换、eval())
- 一篇对OAuth2.0开发实例的介绍
- tomcat的简单配置与适用默认的web应用
- 用word2016 写CSDN 博客
- 3D打印
- 编写的windows程序,崩溃时产生crash dump文件的办法
- mysql 下字符集知识汇总