把已经存在的项目上传到github

来源:互联网 发布:苹果电脑直播音效软件 编辑:程序博客网 时间:2024/06/15 14:02

把已经存在的项目上传到github步骤如下:

github上新建一个空的项目,不需要ignorereadme文件

把项目地址放到xcode > preferences > accounts里面

cd进入本地项目,执行以下步骤就可以把项目上传到github上啦

git init

git add .

git commit -m "first commit"

git remote add origin https://github.com/yaoliangjun/Test.git(项目地址)

git push -u origin master

0 0
原创粉丝点击