git-hacks

git-hacks Git Source Tree

Root/post-receive.sync

1#!/bin/sh
2#
3# Can be used by a remote non-bare repository to keep
4# the working directory in sync with the source repository.
5# Nothing special, but I always forget the "cd ..".
6
7cd ..
8env -i git reset -q --hard

Archive Download this file

Branches