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會有什麼影響。首先將其從版本控制中刪除。 –