Git checkout to discard changes -


i trying discard local changes , seems after type

$ git checkout -- .

.. changes seem still there...

if try:

$ git checkout head .

.. works, changes discarded!

why happening? ideas?

hint: changes seem relevant line endings, no real content edited (that why needed discard after all)

update: use git 1.9.5 windows. local changes unstaged, uncommited, under workingtree

after upgraded

git version 2.11.1.windows.1

this stopped happening (maybe earlier version - bettween 1.9.5 , 2.11.1 - had solved issue)


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -