I was given access to a GitHub repository that doesn’t belong to me.
My goal: I want to clone this repo into my own new GitHub repository and then push it there.
I’ve already cloned the repo locally, but when I try to push it to my own remote (origin), I get this error:
Updates were rejected because the tip of your current branch is behind its remote counterpart. If you want to integrate the remote changes I’m not sure how Git works in this case when dealing with someone else’s repo.
I even tried manually copying the files into my new repository, but that felt really messy.
What’s the correct way to do this?
Yes i can just fork the repo. But I dont want to create any link the original one.
--force.