i have --bare remote repository. files in dev folder and hook post-receive from dev.git folder. now my developers sometimes change and ftp code strait in dev folder. changes doesn't appear when i clone pull or checkout repository, is there a way to reindex remote hard changes?
Asked
Active
Viewed 888 times
0
-
2The whole point of a bare repository is that it has no working copy. Of course it doesn't notice when files are changed in some arbitrary directory! Do you want to have your developers making commits directly on the development server? (Unless you've got a very good reason, I would strongly discourage this.) – Chris Sep 17 '14 at 16:17
-
1As I mentioned on your previous question, please consider wording this better. Preferably with names and a proper title so that it becomes useful to others rather than a one shot question. – Noufal Ibrahim Sep 19 '14 at 11:12
2 Answers
0
Just run git rm -r --cached . && git add . && git commit -am 'reindexed files'
![](../../users/profiles/547050.webp)
David Okwii
- 6,261
- 2
- 29
- 25