Git操作

Posted by YaPi on January 28, 2020

仓库相关

无仓库,创建仓库

mkdir micro-category
cd micro-category
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin git@gitee.com:scncyp/micro-category.git
git push -u origin master

已有仓库

cd existing_git_repo
git remote add origin git@gitee.com:scncyp/micro-category.git
git push -u origin master