Github使用1-入门
来源:互联网 发布:java十个数输出最小值 编辑:程序博客网 时间:2024/06/06 14:02
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"
5、在本地电脑上创建一个文件夹,如:gitspace
6、转到此目录下,执行git init
- fans@yuan:gitspace$ git init
- Initialized empty Git repository in /home/fans/gitspace/.git/
7、将github上创建的仓库GitTest拷贝到gitspaces目录下
- fans@yuan:gitspace$ git clone https://github.com/Thinkerfans/GitTest
- Cloning 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$ ls
- GitTest
8、本地编辑后同步到gitHub上的步骤:
- fans@yuan:GitTest$ vim test.c
- fans@yuan:GitTest$
- fans@yuan:GitTest$
- fans@yuan:GitTest$ ls
- README.md test.c
- fans@yuan:GitTest$ git add test.c
- fans@yuan:GitTest$ git commit -m "add test.c file"
- [master 107f2db] add test.c file
- 1 file changed, 4 insertions(+)
- create mode 100644 test.c
- fans@yuan:GitTest$ git pu
- pull push
- fans@yuan:GitTest$ git push
- Username for 'https://github.com': Thinkerfans
- Password for 'https://Thinkerfans@github.com':
- To https://github.com/Thinkerfans/GitTest
- 1b0439b..107f2db master -> master
来源:http://blog.csdn.net/sunnyfans/article/details/17199507
阅读全文
0 0
- Github使用1-入门
- Github使用1-入门
- github 使用入门
- github使用一-入门
- GitHub入门使用
- github入门使用教程
- github的使用入门
- github使用入门
- github使用入门
- GitHub使用入门
- GitHub使用入门
- GitHub入门使用
- GitHub使用入门
- GitHub 使用入门
- github新手使用入门。
- github使用入门
- github使用入门
- GitHub使用入门介绍
- 1.空间数据的采集与组织
- 解决session跨域读取
- POJ 1328 Rader Installation
- java SSL加密通信
- jquery插件多文件文件上传
- Github使用1-入门
- Secondary NameNode的作用
- Java I/O流总结与巩固
- ~搭建JEESZ分布式架构6--ZooKeeper 集群的安装
- leetcode_96. Unique Binary Search Trees
- 利用DPCM&Huffman编码实现数据压缩_C语言实现
- c++builder 重载WindowProc、WndProc 截获消息(比Delphi多一个Message Map方法)
- 虚析构函数的重要性
- iOS QQ第三方登录