Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 am trying to run this command:

$git submodule init
fatal: Not a git repository (or any of the parent directories): .git

Why am I getting this error. I am trying to set up ActionBarSherlock, but I can not get past the first command. I need ABS for building K-9 Mail. The instructions are here:

share|improve this question
up vote 1 down vote accepted

The error is accurate. You're getting it because you're running git submodule init outside a git repository. Based on the (admittedly sort of vague) directions under "Building with IntelliJ IDEA" on that link, try cloning k9's source from github and downloading ActionBarSherlock first.

share|improve this answer
Yes, I realized that latter. It was because I didn't clone the repository, I downloaded the ZIP archive. I'll accept your answer, as it was the problem. – Josiah Nov 10 '12 at 13:40

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.