GitHub、Gitee新建仓库

121 阅读1分钟

GitHub Default

echo "# AAA" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/javakam/AAA.git
git push -u origin master

GitHub My

git init
git add .
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/javakam/AAA.git
git push -u origin master

Gitee

git init
git add .
git commit -m "first commit"
git remote add origin https://gitee.com/javakam/cloud-disk.git
git push -u origin master