nginxを git リポジトリに追加しましたが、明らかに非常に必要なtempディレクトリが他のリポジトリに複製またはプルされることはありません。同時に追加された他のすべてのディレクトリは問題ありtempませんが、Windows または Linux をプルしても表示されません。
temp下に新しいファイルを作成するgit statusと、追跡されていないファイルとしてリストされます。私の理解では、ディレクトリは無視されません。しかし、なぜ引っ張られないのでしょうか?
編集:temp何を試しても、ディレクトリ全体をステージングできないようです。-fオプションを使用して追加しようとしましたが、ステージング領域に追加もサブディレクトリgit add .も追加しません。temp複数のマシンと異なるリポジトリで試しましたが、結果は常に同じです:
[root@carbon:~/gittest]$ git init
Initialized empty Git repository in /root/gittest/.git/
[root@carbon:~/gittest]$ mkdir temp
[root@carbon:~/gittest]$ git add temp
[root@carbon:~/gittest]$ git status
# On branch master
#
# Initial commit
#
nothing to commit (create/copy files and use "git add" to track)