cd 项目根目录
git init . 项目初始化(.代表当前目录)
git remote add origin https://gitee.com/smy-timi/miaomiao.git
git pull origin dev --allow-unrelated-histories
Git 全局设置:
git config --global user.name "****" git config --global user.email "*******"
创建 git 仓库:
mkdir oa-vue cd oa-vue git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/****/oa-vue.git git push -u origin "master"
已有仓库?
cd existing_git_repo git remote add origin https://gitee.com/****/oa-vue.git git push -u origin "master"