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

前端 未结 5 1522
醉话见心
醉话见心 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条回答
  •  我在风中等你
    2020-12-22 20:05

    Update: October 2017: In the latest VSCode as of October 2017 (version 1.18) you can actually stage specific lines really easy just like you would do it with the git CLI git add -p. You just have to click on the edited line from the side like, watch the diff and apply it or not.

提交回复
热议问题