Changes between Version 38 and Version 39 of Developer/Git


Ignore:
Timestamp:
Feb 13, 2012, 10:10:45 PM (8 years ago)
Author:
Gedare
Comment:

/* git reset */

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Git

    v38 v39  
    186186= git reset =
    187187
    188 git reset is a powerful and tricky command: A good description of what it enables to do can be found [http://progit.org/2011/07/11/reset.html here]. The following are a few useful examples. Note that adding a ~ after HEAD refers to the most recent commit, and you can add a number after the ~ to refer to commits even further back; HEAD by itself refers to the current working directory (changes since last commit).
     188git reset is a powerful and tricky command that should only be used on local (un-pushed) branches): A good description of what it enables to do can be found [http://progit.org/2011/07/11/reset.html here]. The following are a few useful examples. Note that adding a ~ after HEAD refers to the most recent commit, and you can add a number after the ~ to refer to commits even further back; HEAD by itself refers to the current working directory (changes since last commit).
    189189{{{
    190190git reset HEAD~