Jonathan's Blog

Monday, March 11, 2013

Git Production Server Updating

A quick note,

If you want to update a production server's versioned files, and discard local changes (which there shouldn't be any... right?)

discard local changes, and replace them with the most recent commit that exists on the github server (origin) on branch production:

> git reset --hard origin/production

Thanks for help on this from: Here

Posted by Unknown at 2:37 PM

No comments:

Post a Comment

Newer Post Older Post Home

Blog Archive

  • ►  2017 (1)
    • ►  March 2017 (1)
  • ►  2015 (1)
    • ►  August 2015 (1)
  • ►  2014 (1)
    • ►  January 2014 (1)
  • ▼  2013 (12)
    • ►  August 2013 (1)
    • ►  June 2013 (1)
    • ►  May 2013 (1)
    • ►  April 2013 (2)
    • ▼  March 2013 (2)
      • How can you put uncommitted changes to a branch TE...
      • Git Production Server Updating
    • ►  February 2013 (1)
    • ►  January 2013 (4)
  • ►  2012 (12)
    • ►  November 2012 (1)
    • ►  October 2012 (2)
    • ►  August 2012 (1)
    • ►  July 2012 (3)
    • ►  June 2012 (2)
    • ►  May 2012 (2)
    • ►  February 2012 (1)
  • ►  2011 (6)
    • ►  November 2011 (1)
    • ►  October 2011 (1)
    • ►  August 2011 (1)
    • ►  July 2011 (1)
    • ►  June 2011 (1)
    • ►  March 2011 (1)
  • ►  2010 (2)
    • ►  October 2010 (1)
    • ►  June 2010 (1)
  • ►  2009 (2)
    • ►  October 2009 (2)
  • ►  2007 (1)
    • ►  October 2007 (1)
Simple theme. Powered by Blogger.