Xcode自帶git將本地項目上傳到GitHub

1.cd到你的項目目錄下
2.git init
3.git add .
4.git commit -m "first commit"
5.git remote add origin https://github.com/icefishlily/audioPlayer_2.git//換成你自己的url
6.git push -f origin master
7.輸入你的github的帳號密碼成功後如圖
6.上傳圖片,在github裏面點擊README添加文件

README內容格式如下 

(http://github.com/yourorganization/your-repository/raw/master/imagespaths/xxx.png)    
    yourorganization--- 你的organization名字
    your-respository--- 你的respository
    imagespaths--- 你存放圖片的文件夾,如果是直接放在 project 的項目根目錄的話,就可以省略這個
    xxx.png--- 你的圖片名

我的README中內容如下,
![image](https://github.com/CKDemo/text/raw/master//Appicon.png)
要自己設定的:yourorganization,yourrepository,imagespaths,xxx.png。
我的圖片在項目中位置如下





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章