Timur
Timur

Reputation: 77

How do I change git repository to which I push

Let's say I cloned someone else's repository from git

git clone [some youtube parser]

I changed it a bit and want to save it as my project. When I type git push, it says remote: Permission to *** denied to myusername.

Which makes sense, as it is not my repository.

My own repository has url https://github.com/myusername/Projects

I want my project to be saved in that url in a new folder called "youtube parser". How to do that?

Upvotes: 0

Views: 4328

Answers (1)

Pieterjan
Pieterjan

Reputation: 3531

Have you tried?

git remote set-url origin https://github.com/myusername/Projects
git push -u origin master

Upvotes: 2

Related Questions