user1772643
user1772643

Reputation: 645

git commands not working in terminal

Git at terminal behaving very weirdly.

Here is how terminal responds when I have a git command

git log

enter image description here

Not sure how to fix it.

this is how .bash_profile loks like

"$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
if [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
. /usr/local/etc/bash_completion.d/git-completion.bash
fi

export PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]$(git branch     &>/dev/null; if [ $? -eq 0 ]; then echo "\[\033[01;33m\]($(git branch | grep ^*|sed s/\*\ //))\[\033[00m\]"; fi)$ '

Upvotes: 0

Views: 2185

Answers (1)

William Seiti Mizuta
William Seiti Mizuta

Reputation: 7995

Change the git color configuration with the following command:

git config --global color.ui [always|auto|never]

Upvotes: 1

Related Questions