public function moveHead(\gihp\Symref\SymbolicReference $ref) { $file = $this->path . '/HEAD'; $ref = \gihp\Parser\File::exportSymRef($ref); file_put_contents($file, $ref); }