Search code examples
xcodegitxcode5git-branch

XCode git creating "[7;33mmaster[m" instead of master branch


When i create a new project or open an existing project in XCode i get this strange branch name: master branch after creating project

When i try to create a development branch i get this: Creating a new branch

If i go to Source Control > Working Copies > Configure i get this: enter image description here

However if i open the project in the console the branch name is ok: enter image description here

Same in SourceTree: enter image description here

Problem:

  • Can't push to remote repos through XCode because of the distorted branch name.

Tried:

  • Reinstalling XCode. (moving it to the trash and installing it again from the Appstore)
  • Reinstalling Command line tools.

Any ideas? Thanks!


Solution

  • Solved! The dotfiles messed up my xcode, all i needed to do is to uninstall the configuration:

    unlink ~/.bin
    unlink ~/.gitignore
    unlink ~/.gemrc
    unlink ~/.gvimrc
    unlink ~/.irbrc
    unlink ~/.vim
    unlink ~/.vimrc
    rm ~/.zshrc # careful here
    rm ~/.gitconfig
    rm -rf ~/.dotfiles
    rm -rf ~/.oh-my-zsh
    

    Source: https://github.com/ryanb/dotfiles#uninstall