Git Include Ignored files

今日嘗試在 git 上加入之前 用 .gitignore Ignore 左既 個 project folder 入面的 .vscode資料夾
剛剛更新了 project 入面的 workspace setting
而在VS Codeworkspace setting 是儲存在 .vscode/settings.json
要把這個檔案加回 source control 我們首先要在 .gitignore 檔案上 移除這個資料夾

之後使用以下 指令 再強制把這個檔案加回source control

git add -f .vscode/settings.json

完成後便可以 commit 這個檔案了
Hope you find it useful

Chi Yau
Chi Yau
Software Engineer

Interested on Learning new stuff and experience sharing