Github使用1-入门
来源:互联网 发布:天正提示软件已过期 编辑:程序博客网 时间:2024/05/23 10:23
Gighub官网:https://github.com/
Github的入门使用流程:
1、注册github帐号。
2、登陆帐号后创建一个repository。如命名为:GitTest
点击进入后得到其地址:
https://github.com/Thinkerfans/GitTest
3、安装git 工具。(linux系统上)
4、将gitHub上帐号绑定到git工具上。若不绑定,当你执行git commit 是报如下错误。
*** Please tell me who you are.Run git config --global user.email "you@example.com" git config --global user.name "Your Name"to set your account's default identity.Omit --global to set the identity only in this repository.fans@yuan:src$ git config --global user.email "2656079093@qq.com"fans@yuan:src$ git config --global user.name "thinker"此邮件和用户名就是你gitHub上Profile里面的用户名和邮箱号。
5、在本地电脑上创建一个文件夹,如:gitspace
6、转到此目录下,执行git init
fans@yuan:gitspace$ git initInitialized empty Git repository in /home/fans/gitspace/.git/
7、将github上创建的仓库GitTest拷贝到gitspaces目录下
fans@yuan:gitspace$ git clone https://github.com/Thinkerfans/GitTestCloning into 'GitTest'...remote: Counting objects: 3, done.remote: Total 3 (delta 0), reused 0 (delta 0)Unpacking objects: 100% (3/3), done.fans@yuan:gitspace$ lsGitTest
8、本地编辑后同步到gitHub上的步骤:
fans@yuan:GitTest$ vim test.cfans@yuan:GitTest$ fans@yuan:GitTest$ fans@yuan:GitTest$ lsREADME.md test.cfans@yuan:GitTest$ git add test.cfans@yuan:GitTest$ git commit -m "add test.c file"[master 107f2db] add test.c file 1 file changed, 4 insertions(+) create mode 100644 test.cfans@yuan:GitTest$ git pupull push fans@yuan:GitTest$ git push Username for 'https://github.com': ThinkerfansPassword for 'https://Thinkerfans@github.com': To https://github.com/Thinkerfans/GitTest 1b0439b..107f2db master -> master查看gitHub上是否已经有test.c这个文件。
- Github使用1-入门
- Github使用1-入门
- github 使用入门
- github使用一-入门
- GitHub入门使用
- github入门使用教程
- github的使用入门
- github使用入门
- github使用入门
- GitHub使用入门
- GitHub使用入门
- GitHub入门使用
- GitHub使用入门
- GitHub 使用入门
- github新手使用入门。
- github使用入门
- github使用入门
- GitHub使用入门介绍
- 制作 墙壁剥落的效果
- 常用oracle函数
- Makers at work:Folks Reinventing the World One Object or Idea at a Time
- 动态链接库
- group by分组查询
- Github使用1-入门
- 使用SQL Server Analysis Services数据挖掘的关联规则实现商品推荐功能(八)
- Java Web面试题集
- new 和 delete 表达式
- MySql 插入图片时出现乱码
- hadoop学习笔记
- 21cn 世纪龙 面试
- Web Services--gSOAP 2.7.6 第七章(7.1.2)
- protobuf协议语言指南