Lazy loaded image
🌉 开发框架搭建
开发框架06-集成GIT版本控制系统
Words 366Read Time 1 min
2024-10-26
2026-1-19
type
date
slug
category
icon
password

简介

Git 是一个免费开源的分布式版本控制系统,旨在高效处理从小型到大型项目的所有内容。
核心特性
  • 轻量快速的分支操作
  • 便捷的暂存区域
  • 支持多种工作流
  • 分布式架构,本地完整历史

学习路径

本文档已按主题拆分为以下模块,建议按顺序学习:

基础篇

📝
Git 基础操作
涵盖 git init、config、status、log 等基础命令
🌿
Git 版本控制与分支
理解 reset、checkout 的差异,掌握版本回退技巧

进阶篇

🔀
Git 分支管理最佳实践
分支命名规范、标签管理、版本号规范
🤝
Git 协作工作流
多版本并行开发、长周期特性分支处理
🔧
Git 合并工作流详解
完整的 merge 流程、安全检查清单、冲突处理

协作篇

🌐
Git 远程协作
远程仓库管理、子模块、防止覆盖技巧
👥
Git 多账户与 PR 最佳实践
SSH 多账户配置、Fork 工作流、Pull Request 规范

工具篇

🛠️
Git 其他实用功能
Stash、.gitignore、GitHub Actions 自动化
 
⚙️
嵌入式系统特定实践
 
notion image

Introduction

SVN and Git Diff
notion image
notion image
Features
https://git-scm.com/about/branching-and-merging
Staging Area
Quickly stage some of your files and commit them without committing all of the other modified files in your working directory
Quickly stage some of your files and commit them without committing all of the other modified files in your working directory
just add a '-a' to your commit command in order to add all changes to all files to the staging area.
just add a '-a' to your commit command in order to add all changes to all files to the staging area.
Common Workflow
notion image
notion image
notion image
notion image

环境安装

参考资料

  1. Git - Quick Guide (English Version)
  1. An Intro to Git and GitHub for Beginners (Step-by-Step Tutorial)
  1. Git 教程 (Chinese Version)
  1. Github Guides (Systematic)
  1. 汪文君Git实战视频
  1. 廖雪峰 Git讲解
 
上一篇
开发框架05-自动化测试
下一篇
开发框架07- Doxygen 文档生成

Comments
Loading...