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

Re: Fwd: Problem: git doesn't update working dir (always) when checkout'ing other branch

From
Stian Haklev <shaklev@gmail.com>
Date
May 22, 2007, 04:05 UTC
Message-ID
<566574ef0705212105k1387cf41n18e076c0bdf47ec6@mail.gmail.com>
In-Reply-To
<200705211016.58067.andyparkins@gmail.com>
OK, I made the following script:

do.sh: git --version > ../file1 date >> ../file1 git status >> ../file1 echo checking out works with old >> ../file1 git checkout works-with-old >> ../file1 git status >> ../file1 git checkout master >> ../file1 git status >> ../file1 date >> ../file1

I ran it, and I got the following result: nurhaliza:~/wiki stian$ less ../file1 git version 1.5.2.14.g45bde Tue May 22 11:05:19 WIT 2007 # On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # do.sh nothing added to commit but untracked files present (use "git add" to track) checking out works with old # On branch works-with-old # Untracked files: # (use "git add <file>..." to include in what will be committed) # # do.sh nothing added to commit but untracked files present (use "git add" to track) # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # deleted: NOTES # modified: display-page.rb # deleted: eee_darwin # modified: gui.rb # modified: htmlshrinker-data.rb # modified: htmlshrinker.rb # modified: mongrel-web-gui.rb # modified: mongrel-web.rb # modified: zarchive.rb # new file: zcompress.rb # modified: zdump-7z.rb # modified: zdump.rb # modified: zipdoc.rb # deleted: zutil.rb # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # do.sh Tue May 22 11:05:20 WIT 2007

...
I should add that I am working in OSX 10.4.9.

Thank you, Stian

Previous: Andy ParkinsNext: Andy Parkins
Message 3 of 4 in “Fwd: Problem: git doesn't update working dir (always) when checkout'ing other branch”
  1. Stian HaklevMay 21, 2007
  2. Andy ParkinsMay 21, 2007
  3. Stian HaklevMay 22, 2007
  4. Andy ParkinsMay 22, 2007

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.