您的位置:首页 > 其它

创建以及删除自己的Git仓库

2018-03-31 15:52 190 查看
一、创建Git仓库

1、登录github账户

https://github.com

2、点击右上角 “+”,选择“New repository”,如图:



3、操作如图:



4、进入如下界面:



5、新建Xcode工程,打开终端,cd到该工程根目录下,而后执行如下命令:

gitinitgitinit git add .

gitcommit−m“firstcommit”gitcommit−m“firstcommit” git remote add origin 这里填写你刚刚复制的地址

$ git push -u origin master

6、到这里你的仓库就创建成功了,之后的提交,只需要执行如下命令:

gitadd.gitadd. git commit -m “提交提示信息,随意填写”

$ git pull origin master

$ git push origin master

二、删除Git仓库

1、 首先进入相应的repository,然后点击setting

2、 点击 delete the repository

3、 输入要删除的repository名字,即可删除

三、修改远程仓库地址

 </span>git remote rm origin<br><span style="font-size:14px;color:#999999;"> </span>git remote rm origin<br><span style="font-size:14px;color:#999999;"> git remote add origin 你的仓库地址

注:github上传单个文件大于50M时会有警告,大于100M时会上传失败。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: