I have a bare repo set up in my ubuntu server.
After I push to my bare git repo to the server:
$ git push origin master
I want the contents of my non bare repo to be updated with the latest push as shown where the non bare repo is my actual work directory named workfiles.
$ cd /central/workfiles
$ git pull
$ exit
I have heard about the post-receive hook but do not know how to set up the same.
How can i achieve the same.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…