0
git的状态保持:GIT - 忽略月食展示日食资源资源
[email protected]:~/dev/workspaces/ebeans$ git status
On branch master
Your branch is up-to-date with 'watour/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .gitignore
modified: .gitignore~
modified: .metadata/.log
deleted: .metadata/.plugins/org.eclipse.core.resources/.projects/services/org.eclipse.jdt.core/state.dat
modified: modified: .metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps
modified: .metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen
modified: .metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen
modified: .metadata/.plugins/org.eclipse.m2e.core/nexus/fded8792ea35992e87221e67a8dea03d/segments.gen
modified: .metadata/version.ini
我想gitignore的几个版本:
/target/
/log/
**/.project
**/.classpath
**/.metadata
**/.settings
**/.recommenders
/.project
/.classpath
/.metadata
/.settings
/.recommenders
/.gitignore~
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
我也试着删除缓存数据,并承诺
git rm --cached .metadata
但他们不断回来!
你正在从命令行执行此操作,所以这实际上与Eclipse完全无关。只是一个.gitignore问题。我的猜测是'/'正在制作这些绝对路径。将测试... –
顺便说一句,.project文件在哪里相对于.gitignore? –
另外,它说'.metadata'是_modified_,所以它已经在版本控制之下。我不认为.gitignore会有什么影响。首先将其从版本控制中删除。 –