From: lamikr Date: Mon, 09 Jan 2006 21:16:52 GMT Subject: undoing changes with git-checkout -f Message-ID: <43C2D2C4.2010904@cc.jyu.fi> Hi Can somebody tell have I understood git-checkout -f wrong as following does not work as I thought 1) I clone git repo by using command git-clone rsync://source.mvista.com/git/linux-omap-2.6.git linux-omap-2.6 2) I go to cloned repo and create there a new file cd linux-omap-2.6 echo "test" > 1.txt 3) I want to undo the creation of 1.txt by using command git-checkout -f but for some reason the 1.txt is still displayed in the root of linux-omap-2.6 directory. (I have also tried "git-reset --hard" but seems to have same effect) What am I doing wrong? Mika