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

来源:互联网 发布:奶粉推荐 知乎 编辑:程序博客网 时间:2024/06/05 07:32
1.cd到你的项目目录下2.git init3.git add .4.git commit -m "first commit"5.git remote add origin https://github.com/icefishlily/audioPlayer_2.git//换成你自己的url6.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。
我的图片在项目中位置如下

 
原创粉丝点击