初始化git仓库

1.先在gitHub,码云,,gitLab上创建仓库

2.上传代码

初始化本地 git 仓库:

git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/admin/demo.git
git push -u origin "master"

已有仓库

git remote add origin https://gitee.com/admin/demo.git
git push -u origin "master"

你可能感兴趣的:(git,git)