git add -p

功能介绍
对于同一个文件的多处变化,可以实现分次提交