0

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?

Jesper Rønn-Jensen
  • 91,561
  • 40
  • 112
  • 147
user2224893
  • 129
  • 1
  • 10
  • 2
    The 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
  • 1
    As 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 Answers2

1

what about

rm .git/index
git reset
git add .
git commit
git push
0

Just run git rm -r --cached . && git add . && git commit -am 'reindexed files'

David Okwii
  • 6,261
  • 2
  • 29
  • 25