github上传自己的代码

1.首先创建在github上创建自己的文件夹,如下图所示:
这里写图片描述

2.点击绿色的键Clone or download,得到类似于[email protected]:Hansry/keypoint_matching.git这样的代码,接着在Ubuntuterminator中键入

git clone git@github.com:Hansry/keypoint_matching.git

将package拷贝到本地里面。

3.将需要上传到该文件夹的代码全部拷贝到该文件夹中,紧接着执行下面命令:

cd 到从github下载的该目录下
git add . (.表示将所有文件夹都添加到git中)
git commit -m “fisrt commit” (“”里面内容代表描述)
git push origin master

解决github不能上传100M的问题:

git config http.postBuffer 524288000

猜你喜欢

转载自blog.csdn.net/hansry/article/details/80529413
今日推荐