[英]How to add specific files in gitignore?
I have added some files in the same directory of.gitignore.我在.gitignore的同一目录下添加了一些文件。 When I push the changes to BitBucket, the files added in.gitignore, also uploaded.
当我将更改推送到 BitBucket 时,在.gitignore 中添加的文件也已上传。 How to ignore babel.config.json and package.lock.json.
如何忽略 babel.config.json 和 package.lock.json。 Refer the screenshot.
参考截图。
After adding the files to the.gitignore file, you have to delete them locally.将文件添加到 .gitignore 文件后,您必须在本地删除它们。
(assuming you've already pushed.gitignore to your repo) (假设你已经 push.gitignore 到你的仓库)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.