我是github noob,但我想使用它,因爲開源方面。github沒有上傳我創建的新文件
我設法按照教程,最初填寫一個存儲庫,並從我的eclipse android工作區上載文件。現在我添加了幾個文件,並在我的ubuntu終端中嘗試了以下git命令。隨時隨地
cd Dropbox/android/workspace
git add . //figured this would add the new files?
git commit -m 'changed a few things...'
git push origin master
任何錯誤消息,當我看到GitHub的網站,我看到了我在上面輸入提交信息的文件夾.metadata。其他文件夾沒有此消息。我尋找我的新文件,但他們不在github上。
我是否錯過了非常容易的事情?
下面是終端輸出:
git add -A
沒有。
git commit -m 'blah'
[master 41642e3] new fiels
16 files changed, 57 insertions(+)
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/Finance_Calculator2/.markers.snap
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/Finance_Calculator2/.syncinfo.snap
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/Finance_Calculator2/org.eclipse.jdt.core/state.dat
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/MyCalcFinance2/.markers.snap
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/MyCalcFinance2/.syncinfo.snap
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/MyCalcFinance2/org.eclipse.jdt.core/state.dat
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/TabletCalc/.markers.snap
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/TabletCalc/.syncinfo.snap
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/TabletCalc/org.eclipse.jdt.core/state.dat
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/blank/.markers.snap
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/blank/.syncinfo.snap
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/blank/org.eclipse.jdt.core/state.dat
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap
create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.snap
create mode 100644 .metadata/.plugins/org.eclipse.team.cvs.core/.running
git push origin master
To https://github.com/killerpixler/Android-Application-Development.git
bb1d6a5..41642e3 master -> master
把你的Git倉庫中的Dropbox目錄通常是一個壞理念; Dropbox可能會損壞存儲庫。 – 2012-06-15 15:41:52