Types of commands used in Git?

All QuestionsCategory: ToolsTypes of commands used in Git?
chetan shidling asked 2 weeks ago

I need short information.

1 Answers
chetan shidling answered 2 weeks ago

The types of commands in Git are:

usage: git config [<options>]

Config file location

  1. –global use global config file
  2. –system use system config file
  3. –local use repository config file
  4. –worktree use per-worktree config file
  5. -f, –file <file> use given config file
  6. –blob <blob-id> read config from given blob object

Action

  1. –get get value: name [value-regex]
  2. –get-all get all values: key [value-regex]
  3. –get-regexp get values for regexp: name-regex [value-regex]
  4. –get-urlmatch get value specific for the URL: section[.var] URL
  5. –replace-all replace all matching variables: name value [value_regex]
  6. –add add a new variable: name value
  7. –unset remove a variable: name [value-regex]
  8. –unset-all remove all matches: name [value-regex]
  9. –rename-section rename section: old-name new-name
  10. –remove-section remove a section: name
  11. -l, –list list all
  12. -e, –edit open an editor
  13. –get-color find the color configured: slot [default]
  14. –get-colorbool find the color setting: slot [stdout-is-tty]

Type

  1. -t, –type <> value is given this type
  2. –bool value is “true” or “false”
  3. –int value is decimal number
  4. –bool-or-int value is –bool or –int
  5. –bool-or-str value is –bool or string
  6. –path value is a path (file or directory name)
  7. –expiry-date value is an expiry date

Other

  1. -z, –null terminate values with NUL byte
  2. –name-only show variable names only
  3. –includes respect include directives on lookup
  4. –show-origin show origin of config (file, standard input, blob, command line)
  5. –show-scope show scope of config (worktree, local, global, system, command)
  6. –default <value> with –get, use default value when missing entry

Your Answer

11 + 16 =