Last week I cloned a repo without forking it first and only realised my mistake after I had already made some commits to my local copy.
But there's an easy fix.
git remote remove origin
Note: You can get a list of configured remotes and their URLs by running:
git remote -v
git remote add origin [copied URL]
And you're done 😀 ! You can now push your code and it will go to your fork.
Hope this was helpful!
Hi, I am Upamanyu!
If you liked this post maybe you'll like my tweets too. Follow me @tintin_das 🐦.