git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
xxbutoo
V2EX  ›  git

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

  •  
  •   xxbutoo · Aug 8, 2020 · 2846 views
    This topic created in 2110 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   ·   957 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 21:42 · PVG 05:42 · LAX 14:42 · JFK 17:42
    ♥ Do have faith in what you're doing.