Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.gitignore #17

Open
raclen opened this issue Sep 15, 2019 · 0 comments
Open

.gitignore #17

raclen opened this issue Sep 15, 2019 · 0 comments
Labels
博客搬迁 以前博客的文章迁移过来

Comments

@raclen
Copy link
Owner

raclen commented Sep 15, 2019

在使用git的时候,我我们可能会遇到,位于仓库中的某些文件夹不需要提交,我们可以对其过滤
这时候就用到.gitignore
在仓库中新建一个.gitignore的文件。
在window中创建这个文件可能会弹出请输入键名,
可以在进入git仓库后输入touch .gitignore 就创建这个文件了
如果要匹配所有目录下的 node_modules 文件夹,只需要这样做:
node_modules/
把需要过滤的文件夹名字写到里面就行了,如果有多个,换行写入
相关链接
gitignore 文件的正确用法

@raclen raclen added the 博客搬迁 以前博客的文章迁移过来 label Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
博客搬迁 以前博客的文章迁移过来
Projects
None yet
Development

No branches or pull requests

1 participant