How can I commit some changes to a file, but not others, in VSCode?

前端 未结 5 1523
醉话见心
醉话见心 2020-12-22 19:53

VSCode has excellent git integration but I can\'t find a way to do partial commits. Basically, I want to be able to select specific changes in my files and stage them withou

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 20:18

    • Open up the Source Control view, then click a changed file to open the comparison.

    • Select the lines you want to stage.

    • Click '...' then Stage Selected Ranges.

提交回复
热议问题