copying file by file
creating all dirs
changing config file of bare repository