how to clear git for deleted repository code example
Example 1: how to remove git from project
rm -rf .git*
Example 2: how to delete repository in github
#step by step Process
>> Login github
>> Profile # right side of the page profile icon
>> Your repositories
>> Select repositories
>> Goto Settings # repository level settings
>> Delete this repository
>> Please type <repository name> to confirm.