Ubuntu 16.04 下使用git 命令行上传到github

首先,确保git已经成功的安装好了

然后在github上新建一个仓库:例如MyTest

使用git bash命令行:

1 . create a new repository on the command line

在本地磁盘中新建一个空文件夹:例:MyTest
cd MyTest

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/643435675/MyTest.git
git push -u origin master

2 . push an existing repository from the command line

git remote add origin https://github.com/643435675/MyTest.git
git push -u origin master

可以看下截图:我上传django_blog的代码

这里主要是push到github上的操作.png

ending......

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容