使用 git 及 github

Posted 震撼起飞

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用 git 及 github相关的知识,希望对你有一定的参考价值。

1、github 开户、创建项目

2、以下是本地操作:

#初始本地库
git init
#设置git的全局邮箱和用户名
git config --global user.email "<email>"
git config --global user.name "<username>"
#创建本地仓库与远程的链接 git remote add sscmd https:
//github.com/chentyson/sscmd.git #从远程仓库获取所有文件 git pull sscmd master
#增加文件到库
git add <filename>
git commit . -m "<comment>"
#提交文件到远程
git push sscmd master

以上是关于使用 git 及 github的主要内容,如果未能解决你的问题,请参考以下文章

Github介绍与使用

Git

TODO:Github的使用技巧之同步代码

Github的学习过程和使用感悟

码农的好助手:版本管理工具git的使用

源代码管理工具GitHub介绍