undoing changes with git-checkout -f
- From
- lamikr <lamikr@cc.jyu.fi>
- Date
- Jan 9, 2006, 21:16 UTC
- 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.txt3) I want to undo the creation of 1.txt by using command
git-checkout -fbut 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