初识Git
来源:互联网 发布:deepin linux 安装 编辑:程序博客网 时间:2024/04/29 14:56
1.什么是Git?
Git是一个开源的分布式版本控制系统,用以有效、高速的处理从很小到非常大的项目版本管理。
Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。
2.特点
分布式和集中式的最大区别在于开发者可以本地提交。每个开发者机器上都有一个服务器的数据库。
下图是经典的git开发过程。
3.配置git
3.1 自己建一个版本库(linux)
#1安装git(本文版本1.71)
#2 创建版本库 git-init (在一个特定目录下创建,生成.git文件)
Initialized empty Git repository in /xxxxxx/.git
config : 配置文件
HEAD : ref: refs/heads/masterbranches一个索引信息,并且,这个索引将总是指向你的项目中的当前开发分支。
hooks
info
objects :一个叫 objects 的子目录,它包含了你的项目中的所有对象,我们不必直接地了解到这些对象内容,我们应该关心是存放在这些对象中的项目的数据。
refs :它用来保存指向对象的索引。heads 和 tags
#3 插入数据
git add Filename
提交到版本库
git commit
Committer: xxxxxxxx<yyyyyyyyyyyy@zzzzzzzzzz.(none)>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name <you@example.com>'
- 初识git
- 初识Git
- 初识git
- Git初识
- 初识Git
- 初识Git
- 初识git
- 初识Git
- GIT 初识
- 初识Git
- Git初识
- git初识
- 初识Git
- Git初识
- Git初识
- Git初识
- 【Git】初识
- git初识
- Linux VPS iptables 设置
- 酷桌面:IPAD上体验office的炫“酷”移动办公应用
- 10月小结
- 2dx JniHelper的使用
- OCP-1Z0-053-V12.02-673题
- 初识Git
- 从流中加载图片
- mysql--mysql基本操作命令
- 排序
- 创建索引index
- adb不好用
- Android 虚拟键盘更改回车键为Done(个人)
- Android ROM开发之Android源码搭建与编译
- linux内存管理解析----linux物理,线性内存布局及页表的初始化