git oddity; local modified images are not used on

2019-08-06 08:53发布

I have the strange issue that certain images from my webapp are not updated when I deploy my app with rails. The old images are still there.

What would be a good way to check if my git repo has all the changes available?

Normally ill do git commit . -m 'fixes' git add . and use a gitignore

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-08-06 09:46

You can check with git-ls-files

In your case: git ls-files public/ to return a list of files under git. Compare that with git ls-files public -o to list all other files, such as files that are ignored or files that are not (yet) in the index.

Also, just a simple git status will show what files are staged, unstaged, untracked and so on.

查看更多
登录 后发表回答