how to disconnect local repo from remote master

Shell
rm -rf .git
Source

Also in Shell: