I completed MyProject1 and have uploaded it in git in fine way with commits after adding each new features. And now I'm starting MyProject2 and was trying to add the URL for the remote repository. But then I found out that I had mistakenly added the URL in Documents instead of MyProject1 folder because of which MyProject2 folder is also being tracked in MyProject1. And I'm not being able to add URL to MyProject2 but instead facing merge issues.
Is there any way to detach the track from my Document folder without deleting any of my files from Documents. Structure is this way(I'm using Linux):
Documents (And inside Documents there is:)
- MyProject1
- MyProject2
- And other folders which are also being tracked.
git rm -r --cachedthen add those to.gitignore.