Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Git Push

 
Isaac DurĂ¡
Ranch Hand
Posts: 859
2
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I try to push my changes for the first time to GIT and and a pull I get this error



Any idea?
Regards
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you first try to pull and then do a push?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message states that the remote repo has received some more commits from the time you pulled in those changes and now your changes that you are trying to push need to first fetch/pull those changes from remote.

One way to do that is:


(where "origin" is the local logical name to your remote repo)

Once the rebase is done cleanly, you can then push your changes to remote repo.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic