怎么往github中上传自己的项目
原文链接:这里
1.在github中新建一个仓库

点击New ,新建要给仓库

填写合适信息,点击创建。

创建完毕之后会提示你如何上传。

下面的指令从git init开始 执行一遍即可。
|
1
2
3
4
5
6
7
8
|
echo "# demo" >> README.mdgit initgit add README.mdgit commit -m "first commit"git branch -M mastergit remote add origin https://github.com/xxxxx/xxxxx.gitgit push -u origin master |
|
1
|
|

2.创建新分支并把代码上传到新分支
切换到当前代码目录
|
1
2
3
4
5
6
|
git branch hahagit checkout hahagit add .git commit - m "first"git push origin hahagit push
|
浙公网安备 33010602011771号