Git 全局设置:

1
2
git config --global user.name "保修三年"
git config --global user.email "865832@qq.com"

创建 git 仓库:

1
2
3
4
5
6
7
8
mkdir enterprise-official-website
cd enterprise-official-website
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/dongdonging/enterprise-official-website.git
git push -u origin master

已有仓库

1
2
3
cd existing_git_repo
git remote add origin https://gitee.com/dongdonging/enterprise-official-website.git
git push -u origin master