Add refs and repository head. Repository#commit! updates the master ref and head.