简易的Git命令行入门教程:
1. Git 全局设置:
git config --global user.name "demo"
git config --global user.email "[email protected]"
2. 创建 git 仓库:
mkdir demo1
cd demo1
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/xxxxxx.git
git push -u origin master
3. 已有仓库
cd existing_git_repo
git remote add origin https://gitee.com/xxxxxx.git
git push -u origin master
标签:origin,git,入门,demo,add,Git,命令行,com
From: https://blog.csdn.net/zsp_1114/article/details/140281600