首页 > 其他分享 >使用 Git 帮助文档

使用 Git 帮助文档

时间:2024-09-28 10:04:44浏览次数:1  
标签:帮助 Git help repository -- git 文档

聊聊如何更好地查阅官方文档。

git help

学习某个工具,官方文档是少不了的,也是最权威的。我们可以使用 git help 来查看帮助,该命令会列举出常用的命令和介绍:

> git help
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           [--super-prefix=<path>] [--config-env=<name>=<envvar>]
           <command> [<args>]

These are common Git commands used in various situations:

start a working area (see also: git help tutorial)
   clone             Clone a repository into a new directory
   init              Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday)
   add               Add file contents to the index
   mv                Move or rename a file, a directory, or a symlink
   restore           Restore working tree files
   rm                Remove files from the working tree and from the index
   sparse-checkout   Initialize and modify the sparse-checkout

examine the history and state (see also: git help revisions)
   bisect            Use binary search to find the commit that introduced a bug
   diff              Show changes between commits, commit and working tree, etc
   grep              Print lines matching a pattern
   log               Show commit logs
   show              Show various types of objects
   status            Show the working tree status

grow, mark and tweak your common history
   branch            List, create, or delete branches
   commit            Record changes to the repository
   merge             Join two or more development histories together
   rebase            Reapply commits on top of another base tip
   reset             Reset current HEAD to the specified state
   switch            Switch branches
   tag               Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows)
   fetch             Download objects and refs from another repository
   pull              Fetch from and integrate with another repository or a local branch
   push              Update remote refs along with associated objects

'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
See 'git help git' for an overview of the system.

想查看全部命令,可以使用 git help -a​ 或者 git help -all​,使用后就好比用 vim 打 开了一个页面,可通过 J 键和 K 键上下滑动、q 键退出

打开帮助文档

打开帮助文档:一些简单的命令可以在命令行里查看,但如果要查看更多文档,可以查看 Git 自带的帮助文档:在命令行里输入 git help git 后,就会打开:

如果想看某个命令的帮助文档,可以使用 git help 命令。例如 git help pull​:

标签:帮助,Git,help,repository,--,git,文档
From: https://www.cnblogs.com/PeterJXL/p/18437042

相关文章

  • LlamaParse - 文档解析
    文章目录一、关于LlamaParse价格LlamaCloud例子二、使用入门三、与文件对象一起使用四、`SimpleDirectoryReader`一、关于LlamaParsegithub:https://github.com/run-llama/llama_parseLlamaCloud文档:https://docs.cloud.llamaindex.ai/LlamaParse是LlamaCl......
  • 2款.NET开源且免费的Git可视化管理工具
    Git是什么?Git是一种分布式版本控制系统,它可以记录文件的修改历史和版本变化,并可以支持多人协同开发。Git最初是由Linux开发者LinusTorvalds创建的,它具有高效、灵活、稳定等优点,如今已成为软件开发领域中最流行的版本控制系统之一。Git使用一种名为“仓库”的数据结构来保存代码......
  • 要优化和配置Windows蓝牙设备的注册表设置,可以创建一个.reg文件,帮助修改相关的注册表
    要优化和配置Windows蓝牙设备的注册表设置,可以创建一个.reg文件,帮助修改相关的注册表项。以下是详细说明及示例代码。1.创建 .reg 文件您可以使用文本编辑器(如记事本)来创建一个.reg文件。下面是一些常见的蓝牙相关注册表路径和设置。2.常用蓝牙注册表路径蓝牙服务设置:......
  • 基于SpringBoot+Vue+uniapp的公考学习平台的详细设计和实现(源码+lw+部署文档+讲解等)
    文章目录前言详细视频演示具体实现截图技术栈后端框架SpringBoot前端框架Vue持久层框架MyBaitsPlus系统测试系统测试目的系统功能测试系统测试结论为什么选择我代码参考数据库参考源码获取前言......
  • 基于C#图书管理系统 网上图书预约系统的设计(源码+文档)
    目录一.研究目的1.1背景及意义1.2主要研究思路和方法二.需求分析三.数据库设计四.页面展示五.免费源码获取一.研究目的1.1背景及意义  21世纪初,人类社会继工业文明之后,进入知识经济与信息时代。高新技术的迅猛发展,信息技术的广泛应用,全球经济趋于一体化。在新经......
  • 基于Java+Springboot+Vue开发的家具管理系统源码+开发文档
    项目简介该项目是基于Java+Springboot+Vue开发的家具管理系统(前后端分离),这是一项为大学生课程设计作业而开发的项目。该系统旨在帮助大学生学习并掌握Java编程技能,同时锻炼他们的项目设计与开发能力。通过学习基于Java的家具管理系统项目,大学生可以在实践中学习和提升自己......
  • 【含文档】基于Springboot+Vue的高校大学生心理咨询管理系统(含源码+数据库+lw)
    1.开发环境开发系统:Windows10/11架构模式:MVC/前后端分离JDK版本:JavaJDK1.8开发工具:IDEA数据库版本:mysql5.7或8.0数据库可视化工具:navicat服务器:SpringBoot自带apachetomcat主要技术:Java,Springboot,mybatis,mysql,vue2.视频演示地址3.功能系统主......
  • GitHub每日最火火火项目(9.27)
    项目名称:localsend/localsend项目介绍:“localsend/localsend”是一个极具价值的开源项目。它为用户提供了一种跨平台的文件传输替代方案,可媲美AirDrop。在当今数字化时代,人们常常需要在不同操作系统的设备之间传输文件,但并非所有设备都能使用AirDrop。这个项目的出......
  • GitHub的使用
    文章目录一、什么是Git1.1、与其他版本控制系统的区别概念上的差异本地操作数据的完整性附加模型1.2、三种状态和基本Git工作流程Git的基本工作流程二、首次Git设置2.1、Git的安装(Linux)2.2、Git的安装(Windows)2.3、Git配置2.4、配置Git用户2.5、配置默认文本编辑器Emac......
  • Git之5-Gitee(远程仓库)
    我们之前讲的全是在本地电脑上进行的操作,那还不如不用版本控制工具,自己去控制。因此我们团队小组开发,一定要用到远程仓库,这样才能更好地进行版本控制。(不用远程仓库的话,那小组开发只能用同一个U盘,但这样又太荒谬了)。因此我们使用远程仓库gitee。1、注册与创建远程仓库常用......