码迷,mamicode.com
首页 > 其他好文 > 详细

git简易的命令行入门教程

时间:2015-05-20 11:34:27      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:

Git 全局设置:

git config --global user.name "username"

git config --global user.email "youremail@domain"


创建 git 仓库:

mkdir oa

cd oa

git init

touch README.md

git add README.md

git commit -m "first commit"

git remote add origin https://git.oschina.net/bennyinfo/***.git

git push -u origin master

已有项目?


cd existing_git_repo

git remote add origin https://git.oschina.net/bennyinfo/***.git

git push -u origin master


最容易理解的教程:http://rogerdudler.github.io/git-guide/index.zh.html


git简易的命令行入门教程

标签:

原文地址:http://my.oschina.net/u/2269208/blog/417081

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!