Git - Commit file in .gitignore

后端 未结 2 1665
一向
一向 2021-02-01 09:45

I want to commit and push two new files that are inside a folder that is listed in the project\'s .gitignore. I figure I can just change the .gitignore file, but then I would re

2条回答
  •  轮回少年
    2021-02-01 10:36

    git add -f /path/to/file
    

    will force add file even if it is in ignored directory

提交回复
热议问题