Add all files to a commit except a single file?

前端 未结 13 766
遇见更好的自我
遇见更好的自我 2020-11-28 17:03

I have a bunch of files in a changeset, but I want to specifically ignore a single modified file. Looks like this after git status:

# modified:          


        
相关标签:
13条回答
  • 2020-11-28 17:52

    Try this:

    git checkout -- main/dontcheckmein.txt
    
    0 讨论(0)
提交回复
热议问题