git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Fwd: git checkout doesn't work?

From
ILIshayahu Lastov <meoc-it@mail.ru>
Date
Jan 11, 2013, 06:46 UTC
Message-ID
<CAJ52sWkf+ZkLUdLw1ornVt5E2af3w1YSqhkOajTWxvTPKvkAJg@mail.gmail.com>
In-Reply-To
<CAJ52sWkhQDhaZxjp4vxdwSX8HGYMqaXW=gZ-d6atUDKSjHg=yw@mail.gmail.com>

This is my session on Win7 x64: Microsoft Windows [Version 6.1.7601] (c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Dropbox\Dropbox\Wesnoth\Apocryphs>cd Apokryphs.Orks

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks>git status # On branch master # Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

# # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: scenarios/01_NothernVillage.cfg # no changes added to commit (use "git add" and/or "git commit -a")

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks>cd scenarios

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks\scenarios>git status # On branch master # Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

# # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: 01_NothernVillage.cfg # no changes added to commit (use "git add" and/or "git commit -a")

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks\scenarios>git checkout -- 01 _NothernVillage.cfg

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks\scenarios>git status # On branch master # Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

# # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: 01_NothernVillage.cfg # no changes added to commit (use "git add" and/or "git commit -a")

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks\scenarios>

As I understand after last "git checkout" in "git status" I should see that I gave no changes. It looks like an bug, isn't it?

--
сохраняйте, пожалуйста, при ответе исходный текст письма

С уважением, начальник отдела технической поддержки Московского Еврейского Общинного Центра Ишаяу Ластов телефон: +7-495-645-05-16 моб : +7-901-569-81-86 с 12 до 18, с воскресенья по четверг

Next: Duy Nguyen
Message 1 of 2 in “Fwd: git checkout doesn't work?”
  1. Ishayahu LastovJan 11, 2013
  2. Duy NguyenJan 11, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.