How do I discard unstaged changes in Git

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

How do I discard changes in my working copy that are not in the index?

Answers

Another quicker way is:

git stash save --keep-index

After that, you can drop that stash with a git stash drop command if you like.

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/52704/how-do-i-discard-unstaged-changes-in-git

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils