PHPz2017-04-22 09:01:42
我特意在 OSC 的網站上做了測試,發現是可以的,以下是我使用的程式碼
詳細的Repository可以見 http://git.oschina.net/redchamber/testproj
我分別在根目錄和images目錄下添加了jpg以及png文件,程式碼如下
git add images
git commit -m "Test"
git push
你的push失敗,能否請貼出所使用的指令和對應的錯誤輸出?在詢問技術相關問題時,指出自己所使用的作業系統,你做的很好,但是如果能貼出相應的命令和輸出,則會對於其他人幫助你分析,定位和解決問題非常有幫助。
另外:我不是OSC的人,我只是個打醬油的網友 ^_^
liudeMacBook-Pro-3:testproj larry$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# test.jpg
# test.png
nothing added to commit but untracked files present (use "git add" to track)
liudeMacBook-Pro-3:testproj larry$ git add .
liudeMacBook-Pro-3:testproj larry$ git commit -m "Add image files for testing"
[master 49a8cd7] Add image files for testing
2 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 test.jpg
create mode 100644 test.png
liudeMacBook-Pro-3:testproj larry$ git push
Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 106.80 KiB | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To http://git.oschina.net/redchamber/testproj.git
85c1353..49a8cd7 master -> master
liudeMacBook-Pro-3:testproj larry$