git

# gitee 我们强烈建议所有的git仓库都有一个`README`,`LICENSE`, `.gitignore`文件 简易的命令行入门教程: Git 全局设置: ``` git config --global user.name "15175627632" git config --global user.email "2864048202@qq.com" ``` 创建 git 仓库: ``` mkdir gowork cd gowork git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/zhouguanyulovejiadanyang/gowork.git git push -u origin "master" ``` 已有仓库? ``` cd existing_git_repo git remote add origin https://gitee.com/zhouguanyulovejiadanyang/gowork.git git push -u origin "master" ``` # github ``` echo "# selflog" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/zhou-gy/selflog.git git push -u origin main git remote add origin https://github.com/zhou-gy/selflog.git git branch -M main git push -u origin main ```