We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在使用git的时候,我我们可能会遇到,位于仓库中的某些文件夹不需要提交,我们可以对其过滤 这时候就用到.gitignore 在仓库中新建一个.gitignore的文件。 在window中创建这个文件可能会弹出请输入键名, 可以在进入git仓库后输入touch .gitignore 就创建这个文件了 如果要匹配所有目录下的 node_modules 文件夹,只需要这样做: node_modules/ 把需要过滤的文件夹名字写到里面就行了,如果有多个,换行写入 相关链接 gitignore 文件的正确用法
.gitignore
touch .gitignore
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在使用git的时候,我我们可能会遇到,位于仓库中的某些文件夹不需要提交,我们可以对其过滤
这时候就用到
.gitignore
在仓库中新建一个
.gitignore
的文件。在window中创建这个文件可能会弹出请输入键名,
可以在进入git仓库后输入
touch .gitignore
就创建这个文件了如果要匹配所有目录下的 node_modules 文件夹,只需要这样做:
node_modules/
把需要过滤的文件夹名字写到里面就行了,如果有多个,换行写入
相关链接
gitignore 文件的正确用法
The text was updated successfully, but these errors were encountered: