{"id":220,"date":"2010-10-27T19:35:25","date_gmt":"2010-10-27T19:35:25","guid":{"rendered":"http:\/\/www.nirvaat.com\/?p=220"},"modified":"2012-07-24T04:24:04","modified_gmt":"2012-07-24T04:24:04","slug":"merge-the-remote-changes-before-pushing-again-git-message","status":"publish","type":"post","link":"https:\/\/nirvaat.com\/blogs\/2010\/10\/merge-the-remote-changes-before-pushing-again-git-message\/","title":{"rendered":"Merge the remote changes before pushing again : Git Message"},"content":{"rendered":"<p>When you try to push to a GIT Repository and you get this message that mean&#8217;s that someone else has changed the repo after your last fetch. In this case you have to incorporate their changes before you can add yours, it is easier to &#8216;rebase&#8217; rather than merge, just follow the below steps.<\/p>\n<p><code>$ git fetch<br \/>\n$ git fetch origin<br \/>\n$ git rebase origin\/master<br \/>\n$ git push origin master<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you try to push to a GIT Repository and you get this message that mean&#8217;s that someone else has changed the repo after your last fetch. In this case you have to incorporate their changes before you can add yours, it is easier to &#8216;rebase&#8217; rather than merge, just follow the below steps. $ [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"categories":[26],"tags":[39],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-quick-fixes","tag-github"],"_links":{"self":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":2,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":413,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/220\/revisions\/413"}],"wp:attachment":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}