Xcode自带git将本地项目上传到GitHub

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chenyongkai1/article/details/76091767
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。
我的图片在项目中位置如下

 
 
 
 
 
 
 

猜你喜欢

转载自blog.csdn.net/chenyongkai1/article/details/76091767