skip to Main Content

I want to clone a project from github and use vscode or visual studio.
I clone the project locally with git clone but I can’t push it to my repository. I’m probably doing something wrong.

What are the steps to add the entire cloned project (exactly as it is, with all branches, etc.) to an empty repository from my personal github?
Can you tell me, please, the variants both in vscode and in visual studio? I know you can use git commands.

2

Answers


  1. You should change your remote in the local git folder to your personal github repository:

    git remote set-url origin https://github.com/OWNER/REPOSITORY.git
    
    Login or Signup to reply.
  2. Alternative to above solution, you can try below.

    git remote add <new-origin> <new-repository-URL>
    git remote -v
    git push <new-origin> --all
    git push <new-origin> --tags
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search