tags:

views:

49

answers:

3

Hey all

im trying to delete this "origin" thing so i can actually run the tutorial code from this website

http://www.railstutorial.org/book#sec:github

this is the code im trying to run

$ git remote add origin [email protected]:delinquentme/first_app.git

and im getting this returned:

fatal: remote origin already exists

problem is though none of the files are up there!

*UPDATE*

so i just went ahead w the next step and typed out git push origin master

annnnd now its all uploaded...

im still a little shaky on what 'origin' is ... and what each piece of that line ACTUALLY do

+1  A: 

You can see what your origin currently is using this:

git remote show origin

And you can remove it like this:

git remote rm origin
Jamie Wong
+2  A: 

if you run

$ git remote

by itself you should get a list of remotes that are setup.

then you can do:

$ git remote rm origin

to remove the origin remote.

$ git remote --help

Will give you more information about the "git remote" command

halkeye
A: 
Erik Aigner