Git常用命令
Git 全局设置:git config --global user.name "用户名称"git config --global user.email "用户邮箱"创建 git 仓库:mkdir electron-vue-democd electron-vue-demogit inittouch README.mdgit add README.mdgit c
·
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
更多推荐
已为社区贡献7条内容
所有评论(0)