If you need to, you can disconnect your site from GitHub. When you do this, the site retains the code from the most recent commit to its GitHub repo's default branch. After disconnecting, the repo still exists in GitHub but changes to it aren't reflected on your site. Once your site is disconnected from GitHub, the editor exits read-only mode.
Important: Once you disconnect your site from GitHub and from a repo, you can't reconnect the site to that repo again. If you reconnect your site to GitHub later, a new repo is created.
To disconnect from GitHub:
Click the GitHub Integration icon on the sidebar.
Hover over your repo's name and click the More Actions icon.
Select Disconnect from GitHub.
In the modal, click Disconnect from GitHub.