BackgroundMetformin as a first-line clinical anti-diabetic agent prolongs the lifespan of model animals and promotes cell proliferation. However, the molecular mechanisms underlying the proliferative phenotype, especially in epigenetics, have rarely been reported. The aim of this study was to investigate the physiological effects of metformin on female germline stem cells (FGSCs) in vivo and in vitro, uncover β-hydroxybutyrylation epigenetic modification roles of metformin and identify the mechanism of histone H2B Lys5 β-hydroxybutyrylation (H2BK5bhb) in Gata-binding protein 2 (Gata2)-mediated proliferation promotion of FGSCs.MethodsThe physiological effects of metformin were evaluated by intraperitoneal injection and histomorphology. The phenotype and mechanism studies were explored by cell counting, cell viability, cell proliferation assay and protein modification omics, transcriptomics, chromatin immunoprecipitation sequencing in FGSCs in vitro.ResultsWe found that metformin treatment increased the number of FGSCs, promoted follicular development in mouse ovaries and enhanced the proliferative activity of FGSCs in vitro. Quantitative omics analysis of protein modifications revealed that H2BK5bhb was increased after metformin treatment of FGSCs. In combination with H2BK5bhb chromatin immunoprecipitation and transcriptome sequencing, we found that Gata2 might be a target gene for metformin to regulate FGSC development. Subsequent experiments showed that Gata2 promoted FGSC proliferation.ConclusionOur results provide novel mechanistic understanding of metformin in FGSCs by combining histone epigenetics and phenotypic analyses, which highlight the role of the metformin-H2BK5bhb-Gata2 pathway in cell fate determination and regulation.Supplementary InformationThe online version contains supplementary material available at 10.1186/s13287-023-03360-1.