Git: Ignoring Version-Controlled Files

前端 未结 6 2095
遇见更好的自我
遇见更好的自我 2020-11-28 23:13

The .gitignore file is very useful in ignoring some of the files that we don\'t want to control. Unfortunately, it cannot be used when the file is already under version cont

6条回答
  •  一生所求
    2020-11-29 00:00

    Here is a generalized, ubiquitos (not individual) solution for those using Git under SmartGitHG viusal interface:

    • choose a folder you want to ignore in "Repositories" window;
    • select all the files from that folder in "Files" window (unhide unchanged files by clicking the respective filter icon in the Right Top region of the main window);
    • click "Remove" on control panel (check the "Delete local files" check box if you need it);
    • commit local changes;
    • rightclick on the folder in "Repositories" window;
    • click "Ignore".

提交回复
热议问题