`

Git basic command

    博客分类:
  • git
阅读更多
The most commonly used git commands are:
add //add Add file contents to the index
bisect //bisect Find the change that introduced a bug by binary search
branch //branch List, create, or delete branches
checkout //checkout Checkout and switch to a branch
clone //clone Clone a repository into a new directory
commit //commit Record changes to the repository
diff //diff Show changes between commits, the commit and working trees, etc
fetch //fetch Download objects and refs from another repository
grep //grep Print lines matching a pattern
init //init Create an empty git repository or reinitialize an existing one
log //log Show commit logs
merge //merge Join two or more development histories
mv //mv Move or rename a file, a directory, or a symlink
pull //pull Fetch from and merge with another repository or a local branch
push //push Update remote refs along with associated objects
se //se Forward-port local commits to the updated upstream head
reset //reset Reset current HEAD to the specified state
rm //rm Remove files from the working tree and from the index
show //show Show various types of objects
status //status Show the working tree status
tag //tag Create, list, delete, or verify a tag object signed with GPG


$ git help --all
/* 
usage: git [--version] [--exec-path[=<path>]] [--html-path]
           [-p|--paginate|--no-pager] [--no-replace-objects]
           [--bare] [--git-dir=<path>] [--work-tree=<path>]
           [-c name=value] [--help]
           <command> [<args>]

available git commands in 'D:\Program Files (x86)\Git/libexec/git-core'
*/
-----------------------------------------------------------------------
  add                 hash-object         relink
  add--interactive    help                remote
  am                  http-backend        remote-ext
  annotate            http-fetch          remote-fd
  apply               http-push           remote-ftp
  archive             imap-send           remote-ftps
  bisect              index-pack          remote-http
  bisect--helper      init                remote-https
  blame               init-db             remote-testgit
  branch              log                 repack
  bundle              lost-found          replace
  cat-file            ls-files            repo-config
  check-attr          ls-remote           request-pull
  check-ref-format    ls-tree             rerere
  checkout            mailinfo            reset
  checkout-index      mailsplit           rev-list
  cherry              merge               rev-parse
  cherry-pick         merge-base          revert
  citool              merge-file          rm
  clean               merge-index         send-email
  clone               merge-octopus       send-pack
  commit              merge-one-file      sh-setup
  commit-tree         merge-ours          shortlog
  config              merge-recursive     show
  count-objects       merge-resolve       show-branch
  daemon              merge-subtree       show-index
  describe            merge-tree          show-ref
  diff                mergetool           stage
  diff-files          mergetool--lib      stash
  diff-index          mktag               status
  diff-tree           mktree              stripspace
  difftool            mv                  submodule
  difftool--helper    name-rev            svn
  fast-export         notes               symbolic-ref
  fast-import         pack-objects        tag
  fetch               pack-redundant      tar-tree
  fetch-pack          pack-refs           unpack-file
  filter-branch       parse-remote        unpack-objects
  fmt-merge-msg       patch-id            update-index
  for-each-ref        peek-remote         update-ref
  format-patch        prune               update-server-info
  fsck                prune-packed        upload-archive
  fsck-objects        pull                upload-pack
  gc                  push                var
  get-tar-commit-id   quiltimport         verify-pack
  grep                read-tree           verify-tag
  gui                 rebase              web--browse
  gui--askpass        rebase--interactive whatchanged
  gui--askyesno       receive-pack        write-tree
  gui.tcl             reflog

// See 'git help <command>' for more information on a specific command.
分享到:
评论

相关推荐

    Minimal_Git_command::rainbow:这是一个存储库,总结了您至少应该了解的有关Git的命令和技巧。

    这个名为"Minimal_Git_command"的存储库聚焦于提供基础但至关重要的Git命令和技巧,适合初学者快速上手。让我们深入了解一下这些核心概念。 1. **安装Git**:在开始使用Git之前,你需要在你的计算机上安装Git。你...

    Git.Best.Practices.Guide.1783553731

    The command set and learning curve of Git are pretty similar to and even better than any other SCM, and therefore it is comparatively easier to learn. Starting with the basic Git commands, this book...

    Git.Version.Control.Cookbook.1782168451

    To understand and follow the recipes included in this book, basic knowledge of Git command-line code is mandatory. Table of Contents Chapter 1. Navigating Git Chapter 2. Configuration Chapter 3. ...

    Manning.Git.in.Practice.2014.9.pdf

    - **Creating a Repository**: To create a new repository, use the command `git init`. This initializes an empty Git repository in the current directory. - **Basic Commands**: Some basic commands ...

    Learn Version Control with Git: A step-by-step course for the complete

    Basic topics - from installing Git to a "Command Line 101" - are covered, not expected. While learning all the key features such as Branching and Merging, the book will also explain advanced topics as...

    Visual Basic教程

    9. **数据库访问**:介绍ADO.NET(ActiveX Data Objects)组件,如Connection、Command、DataReader和DataSet,用于连接数据库并执行SQL查询。 10. **面向对象编程**:讲解类、对象、属性、方法、继承、封装和多态...

    Basic-command

    6. **文件命名**:在压缩包中有一个名为`Basic-command-main`的文件或目录。这可能是一个包含所有基本命令示例的主目录,其中可能包括其他脚本、配置文件或其他相关资源。 了解这些基础命令后,你可以在Termux环境...

    解决 github项目clone报错 Failed connect to github.com:443; 解决

    /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed connect to github.com:443; Connection timed out...

    git-commands-workflows::high_voltage:您需要了解的所有git命令和工作流程

    您需要了解的git命令和工作流程,才能使用git并自动执行常规命令。初始化# paste this in your terminal to change your current working directory to the project directorycd your_project_path# initialize git...

    Linux for Developers

    * **Command Line and GUI Environments:** Rothwell covers essential skills for both Linux command line and GUI environments, introducing text editors and other tools for efficient coding. * **Text ...

    Linux for Developers: Jumpstart Your Linux Programming Skills

    He presents essential skills for both Linux command line and GUI environments, introducing text editors and other tools for efficient coding. Building on this knowledge, Rothwell introduces ...

    basic-express-server

    基本快递服务器 401-Lab02类 ... 1- Clone the repo from git hub, by run the following command "git clone -repo-". 2- Run "npm init". 3- Create .env file and PORT inside it. 4- Then run "npm start

    jenkins常用插件包

    Command Agent Launcher Plugin Conditional BuildStep Credentials Credentials Binding Plugin Display URL API Durable Task Plugin ECharts API Email Extension Plugin Folders Plugin Font Awesome API Plugin...

    Linux Shell Scripting Cookbook

    Version control based backup with Git 227 Cloning hard drive and disks with dd 230 Chapter 7: The Old-boy Network 233 Introduction 233 Basic networking primer 234 Let's ping! 241 Listing all the ...

    Excel 调用Shell命令执行bash脚本和命令行代码-VBA源码.rar

    在IT领域,尤其是在自动化处理和数据管理中,Excel与VBA(Visual Basic for Applications)的结合经常被用来实现复杂的任务。本主题聚焦于如何利用Excel VBA调用Shell命令来执行Bash脚本和命令行代码,从而进一步...

    xpl-radio:xPL无线电网关

    xpl-radio Node JS层通过xPL执行mplayer 安装 $ git clone https://github.com/wiseflat/xpl-radio.git ... $ xpl-send -m cmnd -c radio.basic url=file1.mp3 command=play|stop|loop|timeLimit|stopTimeLimit

    xpl-alarm:Node JS层通过xPL执行mplayer

    xpl-报警 Node JS层通过xPL执行mplayer 安装 $ git clone https://github.com/wiseflat/xpl-alarm.git ... $ xpl-send -m cmnd -c alarm.basic file=file1.mp3 command=play|stop|loop|timeLimit|stopTimeLimit

    react-workshop:React Workshop来构建和部署React应用

    React车间日程React Basic 杰西克斯虚拟...将ssh密钥添加到您的heroku帐户heroku keys:add 确保通过终端安装以下内容自制吉特Heroku npm 纱像素 command -v brew &gt;/dev/null 2&gt;&1 || /usr/bin/ruby -e "$(curl -fsSL ...

    Daniel Arbuckle's Mastering Python【含代码】

    Use the Git version control system to protect your development environment from unwanted changes Harness the power of Python to automate other software Distribute computation tasks across multiple ...

    material-design-lite-snippets:材质设计精简代码段

    编辑器的段集合。 安装 Git克隆 在主菜单下,选择“帮助”&gt;“显示扩展文件夹” ...mdlbase - Same command as mdl 导航 mdlfixedheader 纽扣 mdlsearch mdlcoloredbuttonripple 输入项 mdlfloatinput

Global site tag (gtag.js) - Google Analytics