About 458,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 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 …

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

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

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

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

  8. Authenticate with GitHub using a token - Stack Overflow

    That will fix your project to use a remote with credentials built in. Warning: Tokens have read/write access and should be treated like passwords. If you enter your token into the clone URL when …

  9. How to remove remote origin from a Git repository

    May 2, 2013 · 1641 I just did git init to initialize my folder as Git repository and then added a remote repository using git remote add origin URL. Now I want to remove this git remote add origin and add …

  10. Receiving "fatal: Not a git repository" when attempting to remote add …

    Did you init a local Git repository, into which this remote is supposed to be added? Does your local directory have a .git folder? Try git init.