Skip to contentSkip to conversation

Git/Terminal issue

DISCUSSION GleMarS 4 participants 5 messages Jun 15, 2016

lore
Share & tools
lore

GleMarS

author
#0 lore raw

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.

Signature · 2 lines
View this message in context: http://www.nabble.com/Git-Terminal-issue-tp24495974p24495974.html
Sent from the git mailing list archive at Nabble.com.
#1 lore raw

GleMarS venit, vidit, dixit 15.07.2009 13:27:

Quoted 10 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.

Quoted 6 lines

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

#2 lore raw
In reply to GleMarS
Quoted 7 lines · GleMarS

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.

Quoted 6 lines

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

#3 lore raw

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.

Quoted 23 lines · Steven Noonan
Quoted 6 lines · GleMarS

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.

Quoted 7 lines

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

Signature · 9 lines
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/
#4 lore raw
Quoted 4 lines · Glen Swinfield

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$ ")