pushing a local repository to github

20 views
Skip to first unread message

Cristiano D.

unread,
Sep 13, 2014, 10:13:46 PM9/13/14
to rubyonra...@googlegroups.com
i trying to push a local repository to github but i caught in this
message:

To https://github.com/webofbits/app1.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to
'https://github.com/webofbits/app1.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository
pushing
hint: to the same ref. You may want to first integrate the remote
changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for
details.

--
Posted via http://www.ruby-forum.com/.

Cristiano D.

unread,
Sep 13, 2014, 10:15:46 PM9/13/14
to rubyonra...@googlegroups.com
i got it!

using git pull <remote repository clone link>

Jason Fleetwood-Boldt

unread,
Sep 15, 2014, 10:44:22 AM9/15/14
to rubyonra...@googlegroups.com

Cristiano,


Technically your post is off-topic since it is not related to Rails, but check out this resource which I highly recommend for you to learn git:

http://gitready.com

-Jason
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b8aee9985c54384b5ccd89e74bdbdeec%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.
>

Reply all
Reply to author
Forward
0 new messages