.gitignore 提交後 [重複] - .gitignore after commit [duplicate]

問題:

This question already has answers here : 這個問題在這裏已經有了答案
Closed last year . 去年關閉。

I have a git repository hosted on Github.我在 Github 上託管了一個 git 存儲庫。 After committing many files, I am realizing that I need to create .gitignore and exclude .exe , .obj files.提交許多文件後,我意識到我需要創建.gitignore並排除.exe.obj文件。

However, will it automatically remove these committed files from the repository?但是,它會自動從存儲庫中刪除這些提交的文件嗎? Is there any way to force that?有什麼辦法可以強制嗎?


解決方案:

參考一: https://en.stackoom.com/question/RQ94
參考二: https://stackoom.com/question/RQ94
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章