මම හිතන්නේ ගැටලුව වන්නේ ඔබේ වැඩ කරන ගස සමාන ය:
a-cache/foo
a-cache/index.html
b-cache/bar
b-cache/foo
b-cache/index.html
.gitignore
... .gitignoreඔබ විස්තර කරන දේ සමඟ . මෙය ඔබට git statusප්රතිදානය ලබා දෙනු ඇත :
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .gitignore
# a-cache/
# b-cache/
... නම් වූ index.htmlගොනු තවමත් ගබඩාවට එක් කර නොමැත. (හැඹිලි නාමාවලිවල නොබැඳි ලිපිගොනු ඇති බව Git දකී, නමුත් එය වාර්තා කරන්නේ නාමාවලි පමණි.) මෙය නිවැරදි කිරීම සඳහා, ඔබ index.htmlගොනු එකතු කර ඇති බවට වග බලා ගන්න :
git add *cache/index.html
git commit -m "Adding index.html files to the cache directories"
... එවිට ඔබේ git statusකැමැත්ත මෙසේ වනු ඇත:
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .gitignore
nothing added to commit but untracked files present (use "git add" to track)
(නිසැකවම ඔබටත් කැපවීමට අවශ්යයි .gitignore. මම මේ පරීක්ෂණ නඩුව සමඟ කම්මැලි වී සිටියෙමි.)