美文网首页开发工具
.gitignore的使用

.gitignore的使用

作者: 陈雨来 | 来源:发表于2018-06-04 10:52 被阅读0次

    1:在目标工程目录下右键git bash,touch .gitignore

    2:在.gitignore文件中添加想要忽略的文件规则

    .idea/

    *.iml

    target/

    3:提交时如果发现.gitignore无效的话,可使用git rm -r --cached .删除本地缓存,然后在进行提交

    git rm -r --cached .

    git add .

    git commit -m"第一次提交?"

    相关文章

      网友评论

        本文标题:.gitignore的使用

        本文链接:https://www.haomeiwen.com/subject/syyesftx.html