Git帮助之初始化项目设置向导

初始化项目设置向导

Git设置:

git config --global user.name "Your Name Here"

# 设置Git提交时的默认用户名,推荐使用本站用户名:JohnGene


git config --global user.email "your_email@example.com"

# 设置Git提交时的默认邮箱,推荐使用本站注册邮箱:*******@qq.com

初始化为仅包含空README.MD文件的空项目:

touch README.md

git init

git add README.md

git commit -m "first commit"

git remote add origin git@code.csdn.net:JohnGene/shapegame.git

git push -u origin master

用已经存在的项目初始化项目:

git remote add origin git@code.csdn.net:JohnGene/shapegame.git

git push -u origin master

下面给出截图

站在巨人的肩膀上,你会看得更远。
原文地址:https://www.cnblogs.com/JohnGene-Blog/p/5086257.html