From: Mahesh Vaidya Date: Sun, 27 Jun 2010 02:24:51 GMT Subject: How does receive-pack and pre-receive hook works ? Message-ID: How does receive-pack and pre-receive hook works ? I have added following in pre-recieve hook; all works fine. git rev-list --pretty d6d147f432869037a7ac8bdca3a2d5bc0cdc1e9f ^a3fe19833480023b72350d6e56e939cbd0ba2c8b I Would like know where does Git saves whatever I am pushing before exit 0 of this hook; Specifically how does it understand about 'd6d147f432869037a7ac8bdca3a2d5bc0cdc1e9f' which is not part of destination depot / repo. Thx/ Mahesh.