About 50 results
Open links in new tab
  1. git - remote add origin vs remote set-url origin - Stack Overflow

    To add a new remote, use the git remote add command on the terminal, in the directory your repository is stored at. The git remote set-url command changes an existing remote repository URL.

  2. git - How to add my current project to an already existing GitHub ...

    Open your Terminal, access to this folder and write: git init git add . git commit -m "my commit" git remote set-url origin git@github.com:username/repo.git git push origin main

  3. git - How to add a local repo and treat it as a remote repo - Stack ...

    I am posting this answer to provide a script with explanations that covers three different scenarios of creating a local repo that has a local remote. You can run the entire script and it will create the test …

  4. How to connect to a remote Git repository? - Stack Overflow

    Nov 30, 2013 · We have a remote machine that works like an SVN repository. Now, we want to turn this machine into the Git central repository. By what I have read, what everyone needs to do on their …

  5. git add remote branch - Stack Overflow

    May 3, 2025 · Here is the complete process to create a local repo and push the changes to new remote branch Creating local repository:- Initially user may have created the local git repository. $ git init :- …

  6. How do I move my local Git repository to a remote Git repository

    Jan 24, 2012 · If you have a stand-alone local working tree repository (a folder with a ".git" folder inside) that you want to add a remote to: Create a new empty repository in the remote.

  7. git - Connect a local repository with a remote repository - Stack Overflow

    Mar 7, 2022 · I have a local repository. I created the whole application, but now I want to push it to a remote repository. I already have remote repo as well. How can I connect these two repositories …

  8. How to create a remote Git repository from a local one?

    Jul 11, 2011 · I think you make a bare repository on the remote side, git init --bare, add the remote side as the push/pull tracker for your local repository (git remote add origin URL), and then locally you just …

  9. Visual Studio Code - Connect to a remote Git repository and PUSH …

    Apr 12, 2017 · 59 I have created a local project with Visual Studio Code that implements a local Git repository. Then I have create a Git repository on Visual Studio Online and I want to push all my …

  10. How do I do an initial push to a remote repository with Git?

    I should add that if you want other people to collaborate with you on this repo, you should add --shared to the end of the git --bare init command. This will setup the necessary permissions.