github - How to maintain up-to-date version of git repository for non-git collaborators -


i have private git repository multiple contributors. have up-to-date version of repository's master branch in network drive (including ones doesn't use git) have access tools in repo.

i have understood possible git hooks, i'm not sure how or best practice so.

directory in network drive should clone of git repository's master , if accidentally modified, should cleaned whenever commits master next time.

edit: of contributors , collaborators work windows.

you need hook on push event (see here). whenever receive request hook, can do

git fetch origin git reset --hard origin/master 

this fetch updates 'origin' repository , change local 'master' branch same state remote 'master'.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -