Git 全局設置:

git config --global user.name "单雄信"
git config --global user.email "xxxvcv@163.com"

創建 git 倉庫:

mkdir laravel-shop
cd laravel-shop
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/ccoocc/laravel-shop.git
git push -u origin master

已有倉庫?

cd existing_git_repo
git remote add origin https://gitee.com/ccoocc/laravel-shop.git
git push -u origin master