My override file
Mystore/mytheme/Magento_Checkout/layout/override/checkout_index_index.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- <referenceBlock name="minicart" remove="true"/> -->
<!-- <referenceContainer name="header.panel" remove="true"/> -->
<!-- <referenceBlock name="top.search" remove="true"/> -->
<referenceBlock name="catalog.compare.link" remove="true"/>
<referenceBlock name="catalog.topnav" remove="true"/>
<!-- <referenceContainer name="footer-container" remove="true"/> -->
</body>
</page>
It is not adding header to checkout page.Suggest some solution.