My normal terminal command line has suddenly disappeared and has been replaced by this git command line ➜ ~ git:(master) ✗
.
How do I get rid of this and go back to my normal command line in Terminal? I on Mac OS X.
I have tried typing exit
, Ctrl+c, q, etc. but nothing helped.
The 'git master' just means that it thinks that the directory you're in right now is a Git repository, with new, unstaged changes. All of this has to do with source control.
Solution: press 'q'. This will enable you to enter command again.
I know your problem , You are using zsh
, right?
If so, you should add export PS1=xxxxx
to ~/.zshrc
, not ~/.bashrc
.
Or you just don't use zsh
, input bash
and switch to bash.input
chsh -s /bin/bash
to change the default shell to bash
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With