-
## git 操作手册
## 前言:
1. 蓝色字体表示命令行命令,正式执行时不要复制前面的#号,#号只是提示应该使用root权限操作
2. 绿色字体表示注释,有时注释太多就不用绿色表示了
3. 注意:本文档的所有操作请先在测环境进行实践,请不要直接在真实的服务器中操作!
## 版权声明:
本文档以开源的形式发布,所有条款如下:
1. 无担保:作者不保证文档内容的准确无误,亦不承担由于使用此文档所导致的任何后果 个条款。
作者:李茂福
更新日期:2024-01-11
## ★git 命令操作
Git 是一个开源的分布式版本控制系统,可以高效地处理从很小到非常大的项目版本管理。
## ★git 命令行客户端安装及设置
# yum install git -y #自带光盘里有
# git --version #查看 git 软件版本
git version 2.39.1
## ★全局设置
设置用户名和邮箱,只用于提交 #全局设置信息保存在~/.gitconfig文件里
# git config --global user.name cof #设置用户名
# git config --global user.email cof@cof-lee.com # 设置邮箱
# git config --global http.sslVerify false #不验证 ssl 证书
# git config --global --list
0 码力 |
35 页 |
1.69 MB
| 2 年前 3
-
## Pro Git
EVERYTHING YOU NEED TO
KNOW ABOUT GIT
Scott Chacon and Ben Straub
……
## TABLE OF CONTENTS
License
Preface by Scott Chacon
Preface by Ben Straub
Dedications
Contributors
Introduction History of Git
What is Git?
Snapshots, Not Differences
Nearly Every Operation Is Local
Git Has Integrity
Git Generally Only Adds Data
The Three States
The Command Line
Installing Git
Installing Installing from Source
First-Time Git Setup
Your Identity
Your Editor
Your default branch name
Checking Your Settings
Getting Help
Summary
Git Basics
Getting a Git Repository
Initializing a
0 码力 |
731 页 |
21.49 MB
| 2 年前 3
-
## Pro Git
Scott Chacon and Ben Straub
EVERYTHING YOU NEED TO
KNOW ABOUT GIT
Pro Git
Scott Chacon, Ben Straub
Version 2.1.413, 2023-12-22
## Table of Contents
License ..... 1
Preface by Scott Chacon Short History of Git ..... 14
What is Git? ..... 14
The Command Line ..... 18
Installing Git ..... 18
First-Time Git Setup ..... 21
Getting Help ..... 24
Summary ..... 25
Git Basics ..... 26 Getting a Git Repository ..... 26
Recording Changes to the Repository ..... 28
Viewing the Commit History ..... 40
Undoing Things ..... 46
Working with Remotes ..... 50
Tagging ..... 55
Git Aliases
0 码力 |
501 页 |
17.96 MB
| 2 年前 3
-
## Pro Git
EVERYTHING YOU NEED TO
KNOW ABOUT GIT
Scott Chacon and Ben Straub
……
## Pro Git
Scott Chacon and Ben Straub
EVERYTHING YOU NEED TO
KNOW ABOUT GIT
## TABLE OF CONTENTS
License
Preface History of Git
What is Git?
Snapshots, Not Differences
Nearly Every Operation Is Local
Git Has Integrity
Git Generally Only Adds Data
The Three States
The Command Line
Installing Git
Installing Installing from Source
First-Time Git Setup
Your Identity
Your Editor
Your default branch name
Checking Your Settings
Getting Help
Summary
Git Basics
Getting a Git Repository
Initializing a
0 码力 |
691 页 |
13.35 MB
| 2 年前 3
-
0 码力 |
2 页 |
46.93 KB
| 2 年前 3
-
## Pro Git
EVERYTHING YOU NEED TO
KNOW ABOUT GIT
Scott Chacon and Ben Straub
……
## Pro Git
Scott Chacon and Ben Straub
EVERYTHING YOU NEED TO
KNOW ABOUT GIT
## 目录
许可证
Scott Chacon 序
Ben
Git 简史
Git 是什么?
直接记录快照,而非差异比较
近乎所有操作都是本地执行
Git 保证完整性
Git 一般只添加数据
三种状态
命令行
安装 Git
在 Linux 上安装
在 macOS 上安装
在 Windows 上安装
从源代码安装
初次运行 Git 前的配置 前的配置
用户信息
文本编辑器
检查配置信息
获取帮助
总结
Git 基础
获取 Git 仓库
在已存在目录中初始化仓库
克隆现有的仓库
记录每次更新到仓库
检查当前文件状态
跟踪新文件
暂存已修改的文件
状态简览
忽略文件
查看已暂存和未暂存的修改
0 码力 |
670 页 |
13.59 MB
| 2 年前 3
-
## Pro Git
EVERYTHING YOU NEED TO KNOW ABOUT GIT
Scott Chacon and Ben Straub
---
Apress®
## 目录
许可证 ...1
Scott Chacon 序 ...2
Ben Straub 序 ...3
献辞 ...4
贡献者 ...5
引言 ...12
起步 ...14
关于版本控制 ...14
Git 简史 ...18
Git 是什么? ...18
命令行 ...21
安装 Git ...22
初次运行 Git 前的配置 ...25
获取帮助 ...27
总结 ...28
Git 基础 ...29
获取 Git 仓库 ...29
记录每次更新到仓库 ...30
查看提交历史 打标签 ...57
Git 别名 ...62
总结 ...64
Git 分支 ...65
分支简介 ...65
分支的新建与合并 ...72
分支管理 ...80
分支开发工作流 ...82
远程分支 ...85
变基 ...94
总结 ...103
服务器上的 Git ...104
协议 .
0 码力 |
501 页 |
19.30 MB
| 2 年前 3
-
Description
Docker build optimum logger on git changes
Changes
Workspace
Build Now
[Raw HTML] Preview
✓ Discard Old Builds
Configure
Strategy
Git Polling Log
Log Rotation
Build History
Days 9c45b3791ebdbcf39/p1_1.jpg)
CVS
CVS Projectset
☑ Git
Repositories
Repository URI
http://git.bluejeansnet.com/pchaturvedi/optimus-logger.git
Credentials
- none -
Add
Advanced...
Add Repository (blank for 'any')
*/master
Add Branch
Delete Branch
## optimus-logger Config [Jenkins]
Git executable
Repository browser
Default
(Auto)
 stored and versioned in Git, and by taking advantage of declarative configurations in Kubernetes.
## Cloud-Native DevOps
So if The canonical example of the “versioned and immutable” principle is Git, which is why it’s the first element in the term GitOps. Git’s store is versioned and immutable because each change is tracked in
0 码力 |
45 页 |
1.09 MB
| 1 年前 3
-
Runs on Windows, macOS, and Linux
C++ IntelliSense, debug & code browsing
CMake, vcpkg and
git integrations
SSH/container/WSL remote experiences
and much, much more...
## 10 Years of Microsoft 0-5.3 requires additional patching
| File | Edit | View | Git | Project | Build | Debug | Test | Analyze | Tools | Ext CPU manufacturer
Supported processor model
## Source Control
Create a Git repository
Push to a new remote
Initialize a local Git repository
GitHub
Local path
P:\source\NewRepo
Azure DevOps
.gitignore 0 码力 |
46 页 |
4.07 MB
| 1 年前 3
|