Unable to create a snapshot in XCode 4.5.1 after update the ~/.gitconfig option [push.default] to “simple”

前端 未结 2 1939
一个人的身影
一个人的身影 2020-12-18 15:09

I was able to create a snapshot for my project in XCode 4.5.1. But now the same project just keeps telling me that:

Unable to create a snapshot
error: Malfor         


        
2条回答
  •  死守一世寂寞
    2020-12-18 15:26

    Well, you may try specifying another .gitconfig file for Xcode by method provided in this answer: How can I specify custom global gitconfig path?.

    For example, after created ~/.xcode_home as the new $HOME for Xcode app, you can use the following shell script to launch Xcode:

    HOME=$HOME/.xcode_home open "$(xcode-select --print-path)/../.."
    

    It is not quite user friendly though… Any way, you may want to check this: Setting environment variables in OS X?. But be warned, overwriting $HOME globally might not be a good idea.

提交回复
热议问题