AllSupported Logo 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 • Productivity
  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

 

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...

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...

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 ...

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...

Automatically generate icons for apps

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

AllSupported

AllSupported

Expert tech support tutorials and guides for Linux, networking, and more.

Categories

  • Linux
  • How To
  • Networking

Resources

  • Search
  • RSS Feed
  • Sitemap

Legal

  • Privacy Policy
  • Terms of Use

© 2025 AllSupported. All rights reserved.