是否有命令可以显示GIT中所有可用命令的列表?有git help,但它显示:
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>]
The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit …Run Code Online (Sandbox Code Playgroud) 如果我需要git status命令的帮助,我可以输入git help status,然后返回一个帮助页面,上面写着名称是“ git-status”。但是“ git-status”不是命令,命令是git status带空格的,不是连字符。
如果我输入git-status或git git-status出现错误。那么为什么帮助页面会调用它git-status呢?
Git 对帮助页面中的每个命令都执行相同的操作。为什么?
假设我有两个分支:master和dev.第一个包含带有内容的名为"1.txt"的文件
"Hello, world"
Run Code Online (Sandbox Code Playgroud)
第二个包含带有内容的文件"1.txt"
"Goodbye, world!!"
Run Code Online (Sandbox Code Playgroud)
git将在何处以及如何存储文件的不同副本?我的意思是,在.git文件夹中的确切位置?