AllSupported
Home How To Linux Search
  1. Home
  2. /
  3. Productivity
  4. /
  5. Overwrite local changes and git pull

Overwrite local changes and git pull

By Tech Writer • March 23, 2015 • 1 min read

 

One liner

git fetch --all && git reset --hard origin/master
 
Update your website easily 
 
i.e.
cd public_html && git fetch --all && git reset --hard origin/master

Related Articles

Meteor template default events

Whenever you create a new template you can use these boilerplate events and rename them to fit your needs. Template.templateName.onDestroyed(function (){ }); Template.templateName.onRendered(functi

VS Code Commenting Shortcuts

On MacOSX (as for September 11, 2017) Key Command ⌘K ⌘C Add Line Comment ⌘K ⌘U Remove Line Comment ⌘/ Toggle Line Comment ⇧⌥A Toggle Block Comment   On Li

Generate your Terms of Use and Privacy Policy

If you are ever looking for a good way to create Terms of Use ad Privacy Policy statements then getterms.io is a perfect site for this purpose. It is not in anyway suitable for large complex busineses

How properly setup your dual monitor task panels with Mint Cinnamon

http://unix.stackexchange.com/questions/255156/how-do-i-add-a-task-bar-to-my-second-monitor-in-linux-mint Once you have added the panel to the second monitor window, right click on the newly added Pa

Automatically generate icons for apps

    http://www.joshmorony.com/automatically-generate-icons-and-splash-screens-for-phonegap-apps/

AllSupported

Your trusted source for tech support and tutorials.

Categories

  • How To (90)
  • Linux (35)
  • PHP (26)
  • Productivity (23)

Resources

  • About Us
  • Contact
  • RSS Feed

Connect

Stay updated with the latest tech support articles and tutorials.

© 2026 AllSupported. All rights reserved.