Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've moved my users home directory from /Users/romeovs to /Volumes/DATA/home and ever since I get a git error.

Whenever I use git clone or git init it replies:

 fatal: Failed to expand user dir in: '~git/init'

has anyone had this problem? I tried reinstalling git from hombrew but that didn't fix it (I am using the homebrew installed git from /usr/local/Cellar)

share|improve this question
Did you just move the directory? – Gerry Mar 29 '13 at 9:28
yes I copied all the files and then went into 'System Preferences > Users and Groups > [username] > Advanced Options...' and changed the Home Directory to match this. Then I did sudo rm -r /Users/username to remove old userdir. – romeovs Mar 29 '13 at 9:38
What does cd ~ result to in the shell? Also why did you move your entire home directory to an external volume? That probably is a bad idea to start with. – Gerry Mar 29 '13 at 9:41
cd ~ works perfectly fine. as does the rest of my computer / shell. – romeovs Mar 29 '13 at 10:13
Maybe a wrong configuration directive? git config -l – Gerry Mar 29 '13 at 10:36
up vote 1 down vote accepted

The problem was indeed a faulty configuration directive:


which I accidently copied from another machine, without copying the template directory as well.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.