問題:
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