threads / discuss / 18792

git checkout and pwd?

Subject: git checkout and pwd?

## tl;dr

2 messages between Apr 8, 2009 and Apr 8, 2009.

replies: 1people: 2as markdown or json

John Dlugosz· Apr 8, 2009, 18:12 UTC · lore
On a Windows system running msysgit, I entered the command:
	git checkout -b -l jmd/mt_queue

and got a reply of: fatal: git checkout: updating paths is incompatible with switching branches. Did you intend to checkout 'compile.vc8/Win32/release/jmd/mt_queue' which can not be resolved as commit?

Is there something about this form of checkout that requires that it be issued while in the "top level" directory of the project (i.e. the one containing the .git subdirectory)?

--John (sorry about the footer; it's not my idea)

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
  If you received this in error, please contact the sender and delete the material from any computer.
Markus Heidelberg· Apr 8, 2009, 18:38 UTC · re: John Dlugosz · lore

Re: git checkout and pwd?

John Dlugosz, 08.04.2009:
Show 9 quoted lines
> On a Windows system running msysgit, I entered the command:
> 
> 	git checkout -b -l jmd/mt_queue
> 
> and got a reply of: 
> fatal: git checkout: updating paths is incompatible with switching
> branches.
> Did you intend to checkout 'compile.vc8/Win32/release/jmd/mt_queue'
> which can not be resolved as commit?
>From the documentation: [-b <new_branch> [-l]]
The new branch has to follow the -b option immediately.
> Is there something about this form of checkout that requires that it be
> issued while in the "top level" directory of the project (i.e. the one
> containing the .git subdirectory)?
No, that doesn't matter.
Markus

← back to recent threads