简体   繁体   中英

how to ignore directories in git in any folder

I have many folders in the root directory of git.

and every folder and subdirectory will have folder call mytemp and .hg

how can i ignore all the files and subfolders inside those two dirs.

i can't mention the path as they wiull be in many folders

add a .gitignore file in the root of your project with these 2 patterns:

mytemp/
.hg/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM