简体   繁体   中英

How to make a .gitignore file in a git repository and add names of the Files/Folders in this .gitignore file so that git may not tracked these files

Git ##*As i am facing problem i have initialized git repository using

git init but there is no git ignore file anyone who can guide me i want to make my git not to monitor some files like node modules folder etc thanks in advance*

you can add the .gitignore file manually. See there for usefull template: https://github.com/github/gitignore

You can create the ignore file by touch .gitignore in git bash.
Here is a template ignore file for node:
https://github.com/github/gitignore/blob/7293c14345c205c679722364a01b88d331e862ff/Node.gitignore#L41

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