AD Research Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

FrontPage

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

AD Research Wiki:
  • HowTos
  • GitCheatSheet

Contents

  1. git reset

git reset

git reset --hard <remote>/<branch>

Resets the working copy to the HEAD of the specified branch and discards all local changes. It's equivalent to a fresh clone, except that you also keep all files and folders which are not part of the working copy. That's why it's useful. A hard reset may also be faster than a fresh clone for a huge project.

Without the --hard, the local changes will be maintained in a way equivalent to the following scenario: (1) fresh clone of the specified branch and revision; (2) pretend that all local changes happened after that.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01