I am a new GIT user, using the built in NetBeans support on win7. I have made some changes to my project files. When I try to push them to the remote server, I am getting the following year.
git push git@bitbucket.org:******/**.git +refs/heads/master:refs/heads/master
Remote Repository Updates
Branch : master
Old Id : f2f9c7d23813d4ccc838d9aa0abd4875*******
New Id : 9277c9b01cf8d1aaff23003ce771cf*******
Result : REJECTED_NONFASTFORWARD
Local Repository Updates
Branch : origin/master
Old Id : f2f9c7d23813d4ccc838d9aa0abd4875******
New Id : 9277c9b01cf8d1aaff23003ce771cf*******
Result : NOT_ATTEMPTED
==[IDE]== Nov 13, 2012 1:14:35 PM Pushing finished.
Could someone explain what is going on, I’m not sure what to do next.
Thanks in advance,
Bill
Git is telling you that there have been updates to the remote repository since you last synchronized against it. You need to pull those changes to your local system (using whatever the Netbean equivalent of
git pullis) and integrate them into your local repository, then you’ll be able to push to the remote repository.This is what the
git pushon the command line says in this case:And the relevant portion of the man page says: