Git 全局设置:

git config --global user.name "用户名称"
git config --global user.email "用户邮箱"

创建 git 仓库:

mkdir electron-vue-demo
cd electron-vue-demo
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/q809198545/electron-vue-demo.git
git push -u origin master

已有项目

cd existing_git_repo
git remote add origin https://gitee.com/q809198545/electron-vue-demo.git
git push -u origin master

修改远程仓库 remote origin

git remote rm origin 
git remote add origin https://gitee.com/q809198545/electron-vue-demo.git
Logo

前往低代码交流专区

更多推荐