V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
xxbutoo
V2EX  ›  git

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

  •  
  •   xxbutoo · Aug 8, 2020 · 2791 views
    This topic created in 2090 days ago, the information mentioned may be changed or developed.

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

    有人遇到吗

    4 replies    2020-08-09 00:11:40 +08:00
    maduoduo
        1
    maduoduo  
       Aug 8, 2020
    看下 .gitignore 文件
    Blacate
        2
    Blacate  
       Aug 8, 2020 via iPhone
    还有当前目录
    xxbutoo
        4
    xxbutoo  
    OP
       Aug 9, 2020
    @maduoduo 感谢,我在.gitignore 文件里面写了 *.php
    导致所有的文件都被忽律了。。后来改成 /*.php 就可以了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1171 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.