相关疑难解决方法(0)

.gitignore被Git忽略了

我的.gitignore文件似乎被Git忽略了 - 该.gitignore文件可能已损坏吗?Git期望哪种文件格式,语言环境或文化?

我的.gitignore:

# This is a comment
debug.log
nbproject/
Run Code Online (Sandbox Code Playgroud)

输出来自git status:

# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       debug.log
#       nbproject/
nothing added to commit but untracked files present (use "git add" to track)
Run Code Online (Sandbox Code Playgroud)

我想,debug.lognbproject/不是出现在未跟踪的文件列表中.

我应该从哪里开始寻找解决方法呢?

git gitignore

1407
推荐指数
20
解决办法
72万
查看次数

.gitignore没有在github上为mac程序工作

我四处搜索,发现一些教程解释了解决问题,不幸的是他们没有工作.

基本上发生的事情是我在.gitignore中有文件,我正在使用的mac程序的github尝试提交,尽管它们被忽略了.我在stackoverflow上发现了一些博客甚至其他帖子,说你可以用命令行修复它,然后给出解释.不幸的是,我完全没有使用命令行的经验,我试图按照他们的指示都未能解决问题.

有没有办法解决这个问题而不使用命令行?如果不是有人可以告诉我怎么发现使用命令行黑客这里其他地方:

git rm -r --cached .
git add .
git commit -m "fixing .gitignore"
Run Code Online (Sandbox Code Playgroud)

git github github-for-mac

10
推荐指数
1
解决办法
6397
查看次数

标签 统计

git ×2

github ×1

github-for-mac ×1

gitignore ×1