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

    Use git remote add origin when you need to add a new remote repository. Use git remote set-url origin when you need to change the URL of an existing remote repository.

  2. What is "git remote add ..." and "git push origin master"?

    Apr 11, 2011 · I will give you a example and explain the git remote add origin command Suppose I am working with GitHub and Bitbucket for the central servers for the Git repositories and have created …

  3. What does "git remote add" exactly do? - Stack Overflow

    Dec 9, 2012 · You can add as many upstream repo address you want with git remote add (from "Git Basics - Working with Remotes"). When cloning, one is added for you, named ' origin '. Does it mean …

  4. 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 [email protected]:username/repo.git git push origin main

  5. How do I change the URI (URL) for a remote Git repository?

    I had to do this on an old version of git (1.5.6.5) and the set-url option did not exist. Simply deleting the unwanted remote and adding a new one with the same name worked without problem and …

  6. 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 …

  7. git - How can I pull/push from multiple remote locations ... - Stack ...

    Doing git remote set-url --add --push <remote_name> adds a pushurl for a given remote, which overrides the default URL for pushes. However, you may add multiple pushurls for a given remote, …

  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. How do I create a remote Git branch? - Stack Overflow

    So that a subsequent git pull will know what to do, you might instead want to use: git push --set-upstream <remote-name> <local-branch-name> As described below, the --set-upstream option sets …

  10. git add remote branch - Stack Overflow

    Now git fetch origin will work barring any other issues like an unplugged network cable. Once you have that done, you can get any branch you want that the above command listed with git checkout some …