Exclude folder from github

前端 未结 4 746
失恋的感觉
失恋的感觉 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:01

    1. Create a file called .gitignore in your repository.
    2. Add the text "App_Data" to this file.
    3. Save.

    It should do exactly what you want. It will exclude files/folders with that string from your local repository path (the path where .gitignore is stored).

    Keep in mind, this is not your only option. I'd read the help document linked below for a better understanding to get exactly what you need accomplished.

    See here for more info: GitHub Help - Ignoring Files

提交回复
热议问题