Exclude folder from github

前端 未结 4 743
失恋的感觉
失恋的感觉 2021-02-02 10:43

I need to exclude the folder App_Data from my Github but i don\'t know how.

I have a application which saves many files like jpg files in the directory: Source\\MyProjec

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-02 11:10

    In case you need to ignore a whole folder which was already tracked, do not forget to do it recursively with -r.

    1. Add foldername/ to .gitignore

    2. git rm -r --cached foldername/

提交回复
热议问题