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

 

 

下面给出截图

posted @ 2015-12-29 16:42  JohnGene  阅读(433)  评论(0编辑  收藏  举报