- To remove git from your current project
Run this command on Mac OS
rm -rf .git
Now the git is removed from your project. - If you want to add new repo to your project
git remote add origin https://url.git
git commit -m “message”
git push -u origin master