Git快速上手教程

下载地址:
推荐使用【https://npm.taobao.org/mirrors/git-for-windows/】比较快。

首先在你的github上新建项目。然后安装好git后,找到你项目的文件夹输入如下命令:

$ git init
$ git commit -m "frist commit"  
$ git remote add origin https://github.com/你的项目地址.git
$ git push -u origin master

当你遇见这个问题时,原因是你的目录地址输错了,需要清除重新输入


可以输入

$ git remote rm origin
$ git remote add origin https://github.com/你的项目地址.git

就可以了!

全部评论

相关推荐

码农索隆:单休一个月少休息4天,一年就是48天,平时节假日,别人3天假期,单休的两天
点赞 评论 收藏
分享
06-04 09:27
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务