xcode not pushing entire image catalogue to github private repo

i had some porblem with my project because of which i had to restore my project from github private repo. i noticed half the icons in the image catalogue had dissappeared!


so i pulled a copy from timemachine and started the repo all over again and pushed a new commit there. i noticed that many files from the image catalogue, though present in the folder of the project in finder, aren't pushed to the repo. these were the exact same files that didn't get pushed the last time.


can someone tell me how i can fix this please?

I would go to the command line and do a "git status". If it lists a bunch of untracked files in your asset catalog, use "git add" on each of them to add them to the index. Then commit and push as usual.

But why would this happen with a new repo? Is it a bug in xcode?

And there are no prompts either! I am left assuming that a git remote repo is merely a secondary backup albiet an unreliable one. Correct me if i am wrong.

xcode not pushing entire image catalogue to github private repo
 
 
Q