threads / discuss / 20118

Git/Terminal issue

Subject: Git/Terminal issue

## tl;dr

5 messages between Jul 15, 2009 and Jul 15, 2009.

replies: 4people: 4as markdown or json

GleMarS· Jul 15, 2009, 11:27 UTC · lore
Hi,

I'm getting rage. Basically whenever I navigate to a folder that contains a .git folder in Terminal (os x leopard), it prints a load of usage text. it's driving me mad, I've uninstalled - re-installed etc etc and no joy.

I have set up git on other machines without any issue so I'm baffled. Output image attached.

Help appreciated.
http://www.nabble.com/file/p24495974/terminal_low.jpg 
Cheers.
-- 
View this message in context: http://www.nabble.com/Git-Terminal-issue-tp24495974p24495974.html
Sent from the git mailing list archive at Nabble.com.
Michael J Gruber· Jul 15, 2009, 11:51 UTC · re: GleMarS · lore

Re: Git/Terminal issue

GleMarS venit, vidit, dixit 15.07.2009 13:27:
Show 16 quoted lines
> 
> Hi,
> 
> I'm getting rage. Basically whenever I navigate to a folder that contains a
> .git folder in Terminal (os x leopard), it prints a load of usage text. it's
> driving me mad, I've uninstalled - re-installed etc etc and no joy.
> 
> I have set up git on other machines without any issue so I'm baffled. Output
> image attached.
> 
> Help appreciated.
> 
> http://www.nabble.com/file/p24495974/terminal_low.jpg 
> 
> 
> Cheers.

Are you using bash completion for git by any chance? Something calls "git branch" with incorrect parameters, and it may be the call which recalculates the bits for PS1.

Michael
Steven Noonan· Jul 15, 2009, 11:51 UTC · re: GleMarS · lore

Re: Git/Terminal issue

On Wed, 15 Jul 2009, GleMarS wrote:
Show 13 quoted lines
> 
> Hi,
> 
> I'm getting rage. Basically whenever I navigate to a folder that contains a
> .git folder in Terminal (os x leopard), it prints a load of usage text. it's
> driving me mad, I've uninstalled - re-installed etc etc and no joy.
> 
> I have set up git on other machines without any issue so I'm baffled. Output
> image attached.
> 
> Help appreciated.
> 
> http://www.nabble.com/file/p24495974/terminal_low.jpg 
Hi there,

Do you use some kind of special .bashrc, .profile, or other dotfiles that would affect what commands such as 'cd' do (i.e. aliases, etc)?

- Steven
Glen Swinfield· Jul 15, 2009, 12:02 UTC · re: Steven Noonan · lore

Re: Git/Terminal issue

I cleared my .profile file but it didn't seem to have an effect. I also removed any aliases.

If that's what it sounds like I'll have another dig around.
Steven Noonan wrote:
Show 24 quoted lines
> On Wed, 15 Jul 2009, GleMarS wrote:
>
>   
>> Hi,
>>
>> I'm getting rage. Basically whenever I navigate to a folder that contains a
>> .git folder in Terminal (os x leopard), it prints a load of usage text. it's
>> driving me mad, I've uninstalled - re-installed etc etc and no joy.
>>
>> I have set up git on other machines without any issue so I'm baffled. Output
>> image attached.
>>
>> Help appreciated.
>>
>> http://www.nabble.com/file/p24495974/terminal_low.jpg 
>>     
>
> Hi there,
>
> Do you use some kind of special .bashrc, .profile, or other dotfiles that 
> would affect what commands such as 'cd' do (i.e. aliases, etc)?
>
> - Steven
>   
-- 
Glen Swinfield

Erskine Design, Studio 3, Four Stoney Street, Nottingham, NG11LG, United Kingdom | Telephone: +44 (0)115 979 9807

Erskine Design is a trading style of Erskine Corporation, a Company Limited by shares and registered in the Isle of Man | Registered office: Floor #2, Viking House, Nelson Street, Douglas, Isle of Man, IM1 2AH | Company number: 002697V | Registered with the Data Protection Supervisor: N002354 | VAT Number: GB 003 1509 36

IMPORTANT PLEASE READ: http://erskinedesign.com/docs/email

http://www.erskinedesign.com/
Alex Riesen· Jul 15, 2009, 12:51 UTC · re: Glen Swinfield · lore

Re: Git/Terminal issue

On Wed, Jul 15, 2009 at 14:02, Glen Swinfield<glen@erskinedesign.com> wrote:
> I cleared my .profile file but it didn't seem to have an effect. I also
> removed any aliases.
>
> If that's what it sounds like I'll have another dig around.
Just do
  echo $PS1

and look at the commands it uses. If you just want to get rid of the prompt set it to something trivial (i.e. "PS1=\w$ ")

← back to recent threads