File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
docs/3-web-servers/11-git Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -73,16 +73,36 @@ git init
7373
7474:::tip[ ` .git ` ディレクトリ]
7575
76- Gitの管理下に置かれたディレクトリには` .git ` という名前のディレクトリが生成されます。このディレクトリには過去のコミットの履歴など、Gitが内部的に使用するファイルが格納されます。誤ったディレクトリで` git init ` コマンドを実行してしまった場合、このディレクトリを削除しましょう。なお、ピリオドから始まるディレクトリやファイルは` ls ` コマンドに` -a ` というオプションをつけないと表示できないので注意が必要です。また、VS Code上でも` .git ` ディレクトリはデフォルトでは表示されません。
76+ Gitの管理下に置かれたディレクトリには` .git ` という名前のディレクトリが生成されます。このディレクトリには過去のコミットの履歴など、Gitが内部的に使用するファイルが格納されます。誤ったディレクトリで` git init ` コマンドを実行してしまった場合、このディレクトリを削除しましょう。
77+
78+ なお、ピリオドから始まるディレクトリやファイルは` ls ` コマンドでは表示されません。
7779
7880``` shell
7981$ ls
82+ ```
83+
84+ ` ls ` コマンドに` -a ` というオプションをつけないと表示できないので注意が必要です。
85+
86+ ``` shell
87+ ls -a
88+ ```
89+
90+ ``` shell
8091$ ls -a
8192. .. .git
93+ ```
94+
95+ ``` bash
96+ $ ls .git
97+ ```
98+
99+ ``` shell
82100$ ls .git
83101branches config description HEAD hooks info objects refs
84102```
85103
104+ また、VS Code上でも` .git ` ディレクトリはデフォルトでは表示されません。
105+
86106:::
87107
88108### 変更をステージする
You can’t perform that action at this time.
0 commit comments