[英]Git reindex untracked added files in remote repository
i have --bare remote repository.我有 --bare 远程存储库。 files in dev folder and hook post-receive from dev.git folder.
dev 文件夹中的文件并从 dev.git 文件夹中挂钩 post-receive。 now my developers sometimes change and ftp code strait in dev folder.
现在我的开发人员有时会在 dev 文件夹中更改和 ftp 代码海峡。 changes doesn't appear when i clone pull or checkout repository, is there a way to reindex remote hard changes?
当我克隆 pull 或 checkout 存储库时没有出现更改,有没有办法重新索引远程硬更改?
what about关于什么
rm .git/index
git reset
git add .
git commit
git push
Just run git rm -r --cached . && git add . && git commit -am 'reindexed files'
只需运行
git rm -r --cached . && git add . && git commit -am 'reindexed files'
git rm -r --cached . && git add . && git commit -am 'reindexed files'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.