Advertisement
hutonahill

Untitled

Feb 28th, 2022
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
  2. [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
  3. [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
  4. [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
  5. [--super-prefix=<path>] [--config-env=<name>=<envvar>]
  6. <command> [<args>]
  7.  
  8. These are common Git commands used in various situations:
  9.  
  10. start a working area (see also: git help tutorial)
  11. clone Clone a repository into a new directory
  12. init Create an empty Git repository or reinitialize an existing one
  13.  
  14. work on the current change (see also: git help everyday)
  15. add Add file contents to the index
  16. mv Move or rename a file, a directory, or a symlink
  17. restore Restore working tree files
  18. rm Remove files from the working tree and from the index
  19.  
  20. examine the history and state (see also: git help revisions)
  21. bisect Use binary search to find the commit that introduced a bug
  22. diff Show changes between commits, commit and working tree, etc
  23. grep Print lines matching a pattern
  24. log Show commit logs
  25. show Show various types of objects
  26. status Show the working tree status
  27.  
  28. grow, mark and tweak your common history
  29. branch List, create, or delete branches
  30. commit Record changes to the repository
  31. merge Join two or more development histories together
  32. rebase Reapply commits on top of another base tip
  33. reset Reset current HEAD to the specified state
  34. switch Switch branches
  35. tag Create, list, delete or verify a tag object signed with GPG
  36.  
  37. collaborate (see also: git help workflows)
  38. fetch Download objects and refs from another repository
  39. pull Fetch from and integrate with another repository or a local branch
  40. push Update remote refs along with associated objects
  41.  
  42. 'git help -a' and 'git help -g' list available subcommands and some
  43. concept guides. See 'git help <command>' or 'git help <concept>'
  44. to read about a specific subcommand or concept.
  45. See 'git help git' for an overview of the system.
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement