-1

这是我的 .gitignore 文件:

# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/

# Local configuration file (sdk path, etc)
local.properties

# Eclipse project files
.classpath
.project
.metadata
local.properties
.classpath
.loadpath
.settings

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

# Proguard folder generated by Eclipse
proguard/

# Intellij project files
*.iml
*.ipr
*.iws
.idea/
/project.properties
/proguard-project.txt
.settings
/lint.xml

git状态的结果:

在分支主

没有什么可提交的,工作目录干净

在 git add library 之后,结果相同......然后给ls -al library/我看我的文件!

4

1 回答 1

-1

我删除了文件。git,然后创建一个新的 git init,然后是 git remote add origin https://github.com/ .... git add。&& gitignore git 添加。&& Git commit-am "go" && git push 成功了……

于 2013-08-05T19:53:23.000 回答