问题描述
我有一个奇怪的问题,那就是当我用rails部署我的应用程序时,webapp中的某些图像没有更新。旧图像仍然存在。
什么是检查我的git repo是否具有所有可用更改的好方法? $ b
正常情况下,git会提交。 -m'修复'
git add。
并使用gitignore
您可以使用
在你的情况中: git ls-files public /
返回git下的文件列表。
将其与 git ls-files public -o
进行比较,以列出所有其他文件,例如忽略的文件或索引中尚未(尚)的文件。
另外,只需一个简单的将显示哪些文件正在上演,未上架,未上架等等。
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
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.
这篇关于git怪异;部署后不会在生产中使用本地修改的映像(未更新)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!