Exclude folder from github

前端 未结 4 745
失恋的感觉
失恋的感觉 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 10:58

    Per https://help.github.com/articles/ignoring-files

    From time to time there are files you don't want git to track. There are a few methods of telling git what files to ignore.

    If you create a file in your repository named .gitignore git will use its rules when looking at files to commit. Note that git will not ignore a file that was already tracked before a rule was added to this file to ignore it. In such a case the file must be un-tracked, usually with git rm --cached filename

    This file can be committed into the repository, thus sharing the rule list with any other users that clone the repository.

提交回复
热议问题