docs:git:undoing_changes

undoing changes

  • reset all tracked/known files
    git reset --hard head
  • remove any untracked files/directories that aren't known (known like listed in a .gitignore file)
    git clean -df
    
    you can also use this to see what would have been done
    git clean -dn
  • docs/git/undoing_changes.txt
  • Last modified: 2010/10/20 23:05
  • by billh