<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>8</ContextCount>
  <ElementCount>77</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>7</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>2</UnitCount>
  <MyReports>
    <Report instance="fgit900-form.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000000 - Document - Document and Entity Information {Elements}</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.FederatedInvestors.com/role/DocumentDocumentandEntityInformationElements</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory></MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fgit900-form.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>000019 - Disclosure - Risk/Return Detail Data {Elements} - Federated Hermes Government Income Fund</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.FederatedInvestors.com/role/DisclosureRiskReturnDetailDataElementsFederatedHermesGovernmentIncomeFund</Role>
      <ShortName>Risk/Return Detail Data- Federated Hermes Government Income Fund</ShortName>
      <MenuCategory></MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fgit900-form.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>040000 - Disclosure - Risk/Return Detail Data {Elements}</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/rr/role/RiskReturnDetailData</Role>
      <ShortName>Risk/Return Detail Data</ShortName>
      <MenuCategory></MenuCategory>
      <Position>3</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept RiskNarrativeTextBlock in rr/2021 used in 1 facts was deprecated in rr/2023 as of 2023-01-31 and should not be used. fgit900-form.htm 655</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept RiskLoseMoney in rr/2021 used in 1 facts was deprecated in rr/2023 as of 2023-01-31 and should not be used. fgit900-form.htm 655</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept RiskNotInsured in rr/2021 used in 1 facts was deprecated in rr/2023 as of 2023-01-31 and should not be used. fgit900-form.htm 678</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 3 fact(s) appearing in ix:hidden were eligible for transformation: rr:HighestQuarterlyReturnLabel, rr:LowestQuarterlyReturnLabel, rr:ProspectusDate -  fgit900-form.htm 15, 20, 22</Log>
  </Logs>
  <InputFiles>
    <File doctype="485BPOS" original="fgit900-form.htm">fgit900-form.htm</File>
    <File>exhibit28-g.htm</File>
    <File>exhibit28-h1a.htm</File>
    <File>exhibit28-h1b.htm</File>
    <File>exhibit28-h2.htm</File>
    <File>exhibit28-h3.htm</File>
    <File>exhibit28-j.htm</File>
    <File>fgit-20230329.xsd</File>
    <File>fgit-20230329_cal.xml</File>
    <File>fgit-20230329_def.xml</File>
    <File>fgit-20230329_lab.xml</File>
    <File>fgit-20230329_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>fhgifpro43497is_20.jpg</File>
    <File>fhilogok11p_2.jpg</File>
    <File>img2da91a221.gif</File>
    <File>imgf6538aa31.gif</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="10">http://xbrl.sec.gov/dei/2021</BaseTaxonomy>
    <BaseTaxonomy items="97">http://xbrl.sec.gov/rr/2021</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
