Let's implement the git command to learn the internals of git..
git 은 Plumbing Commands 와 Porcelain Commands 로 나뉜다. (
git help -av
orman git
참고)
-
-C
-
--git-dir
-
--work-tree
-
git hash-object
- with
-w
option - with
<type> <hash>
argument
- with
-
git cat-file
- without options
-
git ls-files
- without options
-
git check-ignore
- without options
-
git ls-tree
- with
recursive
option - with path argument, without recursive option
- with
-
git update-index
-
git write-tree
-
git read-tree
...
-
git init
- without options
-
git add
-
git commit
-
git status
- without options
-
git log
- without support for packed-refs
-
git diff
-
git push
-
git pull
-
git clone
...
:magic
pattern in pathspec- rlt only supports the .gitignore file for ignore patterns; other methods like .git/info/exclude are not supported.