How GitHub Desktop ignores folders

Use the Destop client to ignore the currently modified files or files with a certain suffix.

insert image description here
In fact, it is very easy to ignore a folder 1. Create a new file named .gitignore
in the project root directory (under the directory with the .git folder) (using a text file)

insert image description here

2. Open the edit mode and write the name of the folder to be ignored in the text. For example, I want to ignore the two folders named releaseop and test 2, just write them in the text, isn't it very simple/funny.

insert image description here
Notice:

  • Multiple folders must be separated by newlines
  • No matter which file the folder is in, just add the folder name and it will be ok

Guess you like

Origin blog.csdn.net/weixin_40307206/article/details/109067772