V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
xxbutoo
V2EX  ›  git

git add . 文件添加不了缓存区?

  •  
  •   xxbutoo · 2020-08-08 23:14:04 +08:00 · 2197 次点击
    这是一个创建于 1328 天前的主题,其中的信息可能已经有所发展或是发生改变。

    git add . 文件提交不了缓存区,导致 git status 提示没有任何变化 git commit 提示没有文件可提交

    有人遇到吗

    4 条回复    2020-08-09 00:11:40 +08:00
    maduoduo
        1
    maduoduo  
       2020-08-08 23:14:51 +08:00
    看下 .gitignore 文件
    Blacate
        2
    Blacate  
       2020-08-08 23:15:13 +08:00 via iPhone
    还有当前目录
    xxbutoo
        4
    xxbutoo  
    OP
       2020-08-09 00:11:40 +08:00
    @maduoduo 感谢,我在.gitignore 文件里面写了 *.php
    导致所有的文件都被忽律了。。后来改成 /*.php 就可以了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2400 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:10 · PVG 00:10 · LAX 09:10 · JFK 12:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.