how to remove remote origin from git repo

I am new to git. I just did git init to initialize my folder as git repo and then added a remote repository using git remote add origin url. Now I want to remove this git remote add origin and add a new repository git remote add origin new-url. How can I do it?


Instead of removing and re-adding, you can do this:

git remote set-url origin git://

See this question: Change the URI (URL) for a remote Git repository

Need Your Help

How should I detect unnecessary #include files in a large C++ project?

c++ visual-studio-2008 include header dependencies

I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary #include directives. Sometimes the #includes are just artifacts and everything will compile ...

Getting output of pybrain prediction as array

python numpy machine-learning neural-network pybrain

I am making use of pybrain to build a network that has 6 input dimensions and one real valued output dimension. The code I use is shown below: