使用 git 及 github

1、github 开户、创建项目

2、以下是本地操作:

#初始本地库
git init
#设置git的全局邮箱和用户名
git config --global user.email "<email>"
git config --global user.name "<username>"
#避免每次push 时输入用户密码的方法
git config --global credential.helper store
#创建本地仓库与远程的链接 git remote add yyyyy https:
//github.com/xxxx/yyyyy.git #从远程仓库获取所有文件 git pull yyyyy master
#增加文件到库
git add <filename>
git commit . -m "<comment>"
#提交文件到远程
git push sscmd master

posted on 2017-04-22 12:28  震撼起飞  阅读(178)  评论(0编辑  收藏  举报

导航