git的安装与使用入门
2014-04-10 11:22
295 查看
最近看到一个内核注释的代码,想下载下来瞄一下,可,这代码是用git存储管理的,没办法,只能在自己的虚拟机上弄了。试用了下git,达到了我的目的。
Initialized empty Git repository in /home/install-pngynghay/git/.git/
remote: Counting objects: 170329, done.
remote: Compressing objects: 100% (42774/42774), done.
remote: Total 170329 (delta 125743), reused 170108 (delta 125546)
Receiving objects: 100% (170329/170329), 42.59 MiB | 591 KiB/s, done.
Resolving deltas: 100% (125743/125743), done.
[root@localhost install-pngynghay]# git config --global user.email5---------7@qq.com
[root@localhost install-pngynghay]# cd liongit/
[root@localhost liongit]# ls
[root@localhost liongit]#
[root@localhost liongit]# git init
Initialized empty Git repository in /home/install-pngynghay/liongit/.git/
remote: Counting objects: 19210, done.
remote: Compressing objects: 100% (15899/15899), done.
remote: Total 19210 (delta 2020), reused 19206 (delta 2019)
Receiving objects: 100% (19210/19210), 50.01 MiB | 251 KiB/s, done.
Resolving deltas: 100% (2020/2020), done.
From git://code.csdn.net/chenyu105/linux_kernel_2-6-11-12_comment
* branch HEAD -> FETCH_HEAD
[root@localhost liongit]# ls
arch Documentation init MAINTAINERS README security
COPYING drivers ipc Makefile README.md sound
CREDITS fs kernel mm REPORTING-BUGS usr
crypto include lib net scripts
使用yum安装git
[root@localhost install-pngynghay]# yum install git-core更新git
[root@localhost install-pngynghay]# git clone git://git.kernel.org/pub/scm/git/git.gitInitialized empty Git repository in /home/install-pngynghay/git/.git/
remote: Counting objects: 170329, done.
remote: Compressing objects: 100% (42774/42774), done.
remote: Total 170329 (delta 125743), reused 170108 (delta 125546)
Receiving objects: 100% (170329/170329), 42.59 MiB | 591 KiB/s, done.
Resolving deltas: 100% (125743/125743), done.
创建用户名和联系方式
[root@localhost install-pngynghay]# git config --global user.name "lion"[root@localhost install-pngynghay]# git config --global user.email5---------7@qq.com
创建版本库
[root@localhost install-pngynghay]# mkdir liongit[root@localhost install-pngynghay]# cd liongit/
[root@localhost liongit]# ls
[root@localhost liongit]#
[root@localhost liongit]# git init
Initialized empty Git repository in /home/install-pngynghay/liongit/.git/
下载代码至本地
[root@localhost liongit]# git pull git://code.csdn.net/chenyu105/linux_kernel_2-6-11-12_comment.gitremote: Counting objects: 19210, done.
remote: Compressing objects: 100% (15899/15899), done.
remote: Total 19210 (delta 2020), reused 19206 (delta 2019)
Receiving objects: 100% (19210/19210), 50.01 MiB | 251 KiB/s, done.
Resolving deltas: 100% (2020/2020), done.
From git://code.csdn.net/chenyu105/linux_kernel_2-6-11-12_comment
* branch HEAD -> FETCH_HEAD
[root@localhost liongit]# ls
arch Documentation init MAINTAINERS README security
COPYING drivers ipc Makefile README.md sound
CREDITS fs kernel mm REPORTING-BUGS usr
crypto include lib net scripts
相关文章推荐
- git使用手册(一)新手入门 下载安装
- Git入门安装及简单使用
- win10 +Git2.10.2-64bit 安装+入门使用(1)
- Git高速入门——Git安装、创建版本号库以及经常使用命令
- Ubuntu14.04下Git安装和使用快速入门
- Git-从入门到放肆(一)——本地安装使用
- Maven的安装、配置及使用入门
- Github入门(二)安装Git及配置
- jenkins使用 (三)centos安装git客户端
- sass、git、ruby的安装与使用。
- git使用笔记---简单入门
- ReviewBoard 的安装和使用(三)—— Git仓库的配置
- OS X入门 — 使用brew安装zookeeper
- win7安装 git软件,如何使用git上传本地代码
- 使用 Homebrew 安装 Git
- ubuntu下git安装与使用笔记
- Linux下git的安装及简单使用
- git安裝鏈接到遠程倉庫和myeclipse 集成使用,Ubuntu下Git的安装与使用
- ubuntu下git安装及使用
- git安装与使用