JM233333's Blog
  • Programming Languages

    • C
    • Python
  • Algorithms and Data Structures

    • Data Structure
    • Fundamental Algorithms
    • Graph Theory
  • GNU Toolchain

    • Bash
    • gdb
  • Development Environment

    • Ubuntu
    • QEMU
  • Development Tools

    • Git
    • VSCode
  • Operating Systems

    • Principles of Operating Systems
    • Xv6
    • Linux Kernel
  • Software Testing and Analysis

    • Software Testing
    • Software Analysis
    • Program Verification
  • LeetCode
  • XJTUOJ
  • System

    • System Performance
  • Programming

    • ...
  • Others

    • ...
  • Paper Reading

    • Model Checking
    • Fuzzing
    • Symbolic Execution
  • 3D Game Programming

    • 3D Mathematics

JM233333

弱小可怜又无助的学术废物
  • Programming Languages

    • C
    • Python
  • Algorithms and Data Structures

    • Data Structure
    • Fundamental Algorithms
    • Graph Theory
  • GNU Toolchain

    • Bash
    • gdb
  • Development Environment

    • Ubuntu
    • QEMU
  • Development Tools

    • Git
    • VSCode
  • Operating Systems

    • Principles of Operating Systems
    • Xv6
    • Linux Kernel
  • Software Testing and Analysis

    • Software Testing
    • Software Analysis
    • Program Verification
  • LeetCode
  • XJTUOJ
  • System

    • System Performance
  • Programming

    • ...
  • Others

    • ...
  • Paper Reading

    • Model Checking
    • Fuzzing
    • Symbolic Execution
  • 3D Game Programming

    • 3D Mathematics
  • git

    • Git 00 - Introduction
      • 阅读指引图
      • TBD
      • 推荐阅读
    • Git 01 - Initialization
    • Git 0X - GitHub Access Authentication
  • vscode

  • development-tools
  • git
JM233333
2022-01-01
939
1

Git 00 - Introduction

Creative Commons

# 前言

由于 Git 的广泛应用及其不可替代的重要地位,关于 Git 的教程和博客实在是太多了,各种不同风格的手把手入门教程铺天盖地。并且官方网站推荐了一本可以免费阅读的电子书 Pro Git book ,讲得通俗易懂,并且还有中文翻译版。如此想来,无论是想快速上手还是想沉下来好好学,都有现存的优质内容,我已经没有必要再写一遍了。

在实际使用 Git 时,程序员们总会遇到各种各样奇怪的问题:一类是除非对 Git 足够熟悉否则就会头疼的问题,例如怎么在新环境上和远程仓库同步、版本怎么回退、错误的提交怎么消除——这些听起来似乎很容易,但是很多人,尤其是那些并不身处于对版本控制有强需求的大团队的人,在大多数时间里对 Git 的运用只是简单的 push/pull ,其它操作长时间不用很快就会忘记——而且有些操作确实不太好记,记下来也没什么价值。另一类是各种特殊需求,例如想统计项目的代码提交行数之类的冷门操作,再例如最令国内程序员暴躁的、时不时就会出现的 Connection Timeout ,等等。

当遇到这些问题时,程序员们总会在搜索引擎上寻求帮助,并且通常都能找到答案,但是过程却不一定顺利:人们想要的答案通常来自各类技术博客,它们分散在各处,并且经常用不太好读的文字写得不清不楚,每次查起来都会令人感到非常不爽。本版块正是对这些问题的解决方案的一个汇总:既是便于读者、也便于我自己去查阅,同时在汇总的过程中也能加深我的记忆。因为我也发现,每次这样和无头苍蝇一样在搜索引擎上找答案,偶尔几次还好说,经常这样的话实在是会让我有些烦躁(毕竟有些技术博客写得实在是让人难以读懂,点开的唯一价值就是把它关掉),还不如花点时间做个汇总。

本版块的内容会随时间而不断演化,从开坑最初的空白出发,逐步扩充为一个足够全面的汇总。


# 阅读指引图

其中:

  • 淡黄色方块表示有关工具基础运用的文章。

  • 小麦色方块表示有关工具进阶运用的文章。

  • 箭头表示一组前置知识的关系。在阅读一篇文章前,推荐您先阅读其所有前置文章。

  • 虚线箭头表示一组建议的前置关系,是可选的,您可以选择忽略此类提示。

  • 空心大箭头表示你将进入到进阶区域。

  • 淡粉色方块表示来自其他知识板块的文章,因为它们是本板块内某些文章的前置知识,所以被专门标示出来。


# TBD

git config --global core.ignorecase false

# 推荐阅读

Git - Pro Git book (opens new window)


#基础教程#开发工具#Git

Git 01 - Initialization→

最近更新
01
Linux Kernel 00 - Introduction
08-01
02
Linux Kernel 01 - Build and Run a Tiny Linux Kernel on QEMU
08-01
03
Linux Kernel 01 - Debug the Linux Kernel
08-01
更多文章>
Theme by Vdoing | Copyright © 2019-2022 JM233333 | CC BY-NC-SA 4.0
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式