# Can't set up Git for some reason

**URL:** <https://www.ruby-forum.com/t/cant-set-up-git-for-some-reason/204099>\
**Category:** Rails\
**Created:** [March 5, 2011, 12:26am UTC](https://www.ruby-forum.com/t/cant-set-up-git-for-some-reason/204099 "2011-03-05T00:26:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 5, 2011, 12:26am UTC](https://www.ruby-forum.com/t/cant-set-up-git-for-some-reason/204099/1 "2011-03-05T00:26:14Z")

</div>

Hi,

When I’m typing in

git remote add origin git@github:gabaluschi/first\_app.git

i get…  
fatal: remote origin already exists

and then when i type git push origin master,  
after entering my passphrase, i get:  
ERROR: gabaluschi/first\_app.git doesn’t exist. Did you enter it  
correctly?  
fatal: The remote end hung up unexpectedly.

help?

Thanks!

---

<div class="post-metadata">

**Author:** ![gabaluschi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gabaluschi](https://www.ruby-forum.com/u/gabaluschi)\
**Post date:** [March 5, 2011, 10:56am UTC](https://www.ruby-forum.com/t/cant-set-up-git-for-some-reason/204099/2 "2011-03-05T10:56:11Z")

</div>

On Mar 4, 11:26pm, Gaba L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> When I’m typing in
> 
> git remote add origin git@github:gabaluschi/first\_app.git
> 
> i get…  
> fatal: remote origin already exists

That’s saying you’ve already added the remote. It looks like there’s a  
typo there though, since it should be [github.com](http://github.com) (not github, unless  
you’ve been messing around with /etc/hosts or your ssh config), which  
may explain the second part. I’d try removing the remote & trying  
again (although as Peter says, this is really a git question not a  
rails one)

Fred

---

<div class="post-metadata">

**Author:** ![gabaluschi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gabaluschi](https://www.ruby-forum.com/u/gabaluschi)\
**Post date:** [March 5, 2011, 12:49am UTC](https://www.ruby-forum.com/t/cant-set-up-git-for-some-reason/204099/3 "2011-03-05T00:49:37Z")

</div>

Quick look suggests you created a private repo:

> **[gabaluschi - Overview](https://github.com/gabaluschi/)**
>
> gabaluschi has 6 repositories available. Follow their code on GitHub.

Try your public repo first and make sure that is working:  
git://github.com/gabaluschi/Gabaluschi.git

Also, this is a git question - not a Rails one. I’d check for support in  
the git world first.

Best Wishes,  
Peter
