gitignore

    0热度

    2回答

    我有一个工程树结构如下,其中: + /Root - .gitignore + - - /Folder A - - - .gitignore <--- this fellow + - - - /bin - - - - - fileA + - - - - fileB + - - - /Folder AA + - - /FolderB + - - - /bin ... 在根文件夹中的.gitignore

    1热度

    1回答

    我有这样的.gitignore文件: /node_modules /public/storage /public/hot /storage/*.key /vendor .idea Homestead.json Homestead.yaml .DS_Store Thumbs.db *.sublime-project *.sublime-workspace .project

    -1热度

    3回答

    我是新手编程和使用git和github。我想确保我的回购仅具有必要的文件,并且由于我在虚拟环境中工作,每个环境都具有在激活环境时创建的文件夹(__pycache__,.vscode,Include,Lib,Scripts, tcl等)。我是否正确地认为这些对回购中的任何人都没有用处,并且可以添加到.gitignore?

    1热度

    1回答

    Git项目的 文件夹结构: .git/ <some git stuff> .gitignore level1/ level2/ file1 file2 的文件.gitignore,file1和file2都是空的。我运行git add .gitignore和git commit -m "create empty .gitignore"。 如果.gi

    -1热度

    3回答

    我有一个项目,其结构如下: build/ .git/ .gitignore LICENSE pics/ project.c README.md shared/ solutions/ 我build/文件夹是我使用的CMake所以有各种文件,如CMakeCache.txt,我想混帐CMakeLists.txt等。忽略。 我.gitignore文件有: .gitignore *.o

    0热度

    1回答

    在我的.gitignore我也行: /storage/*.key 但我不想忽略这个特定的路径和它的所有内容: /storage/app/public/* 现在,内这条道路还有另一种.gitinore文件,它具有: * !.gitignore 而且在相同的路径还有另一个具有的.gitignore: * !public/ !.gitignore 我认为这将是添加路径,但不工作。

    0热度

    1回答

    TLDR:我想忽略父文件夹中除folder1和folder2的内容以外的所有文件。在可能的情况下,folder1或2包含jpg/png文件,也可以忽略它们。 这是我目前在全球.gitignore中所拥有的。 *.jpg *.png /* !/folder1 !/folder2 非常感谢! 例如: /parent-folder -> text1.txt (ignored)

    3热度

    2回答

    我有一个.gitignore文件看起来像这样: * !/src !/resources !/.gitignore !/package.json !/tsconfig.json !/README.md 我在src文件夹src/config/mongo.ts添加文件到子目录。然而,当我尝试添加文件时,它没有得到补充说: git add -A 我试图改变第二线以下每个: !/src/

    2热度

    1回答

    我想直接从git外壳添加一个特定的文件到.gitignore。文件无法忽略的是token.mat 如果键入: touch .gitignore ,然后手动开启的.gitignore用文本编辑器,并添加 token.mat 保存并关闭,它的工作原理,混帐忽略它(当我在git shell中输入git status时,我不再看到token.mat) 但是,在git shell中,如果我键入: t

    2热度

    2回答

    我想设置gitignore来排除除2以外的所有子目录。我已经包括〜!〜两个我想包括但Sourcetree没有捡起它。 这里是我的相关gitignore # .gitignore node_modules/ wp-content/plugins/ wp-content/upgrade/ !wp-content/plugins/export-tool !wp-content/plugins/