20181203——git上传到码云步骤

第一步:打开码云官网,输入账户信息。https://gitee.com/

第二步:如图所示,创建项目:

第三步:Github 基于Git实现代码托管,确认电脑上已经安装Git,如果没有安装Git,就先安装Git。

第四步:基于Eclispse 创建Maven 项目,打开Maven项目所在文件夹,右击"Git Bash here".

第五步:按照Git新建仓库上的文档提示,提交项目。

1、在命令行中,输入git init,使maven项目文件夹加入git管理;

2、输入git add .”(不要漏了“.”),将maven文件夹全部内容添加到git;

3、输入git commit -m “init”;

4、输入git remote add origin 远程仓库地址(git remote add origin 你自己的https地址),连接你的guthub仓库。

5.输入git push -u origin master,上传项目到码云Github。


git remote add orgin 指令是什么意思 $ makdir ~/hello-world //创建一个项目hello-world $ cd ~/hello-world //打开这个项目 $ git init //初始化 $ touch README $ git add README //更新README文件 $ git commit -m 'first commit' //提交更新,并注释信息“first commit” $ git remote add origin [email protected]:defnngj/hello-world.git //连接远程github项目 $ git push -u origin master //将本地项目更新到github项目上去

猜你喜欢

转载自blog.csdn.net/qq_36344771/article/details/84751814
今日推荐