From: T Date: Fri, 14 Oct 2011 01:57:23 GMT Subject: fatal: Not a git repository Message-ID: <1318557443.92591.YahooMailNeo@web114209.mail.gq1.yahoo.com> I am on RedHat Linux Server 5.7, installed git and all worked great. Performed a "git add ." and sat back and watched it chew up GB fo data and create the .git repository, which I was going to study.  But then I decided to delete the .git repository before the commit, and redo the work after I added additional files to the filesystem. The git application no longer works.  I have done a complete deletion of all files that I know of and a complete reinstallation and yet every time that I attempt to get git to reread the directory and recreate the repository or ANY repository on the system even while root the error message is: [root@localhost wizdom]# git add . fatal: Not a git repository (or any of the parent directories): .git Any idea on how to fix this problem so that I can get on with using git? Wizdom is a dir of management information systems related files, 29.4GB in size, containing 264380 files, for systems administration and when git had complete the add command it had create a dir /home/Object/wizdon/.git that was 26.1GB in size and with 212774 files in 256 sub-folders. ============================================ [root@localhost ~]# mkdir /tmp/git_source [root@localhost ~]# cp /home/Object/Desktop/100511/git/git-1.7.7.tar.gz /tmp/git_source/. [root@localhost ~]# openssl dgst -sha1 /tmp/git_source/git-1.7.7.tar.gz SHA1(/tmp/git_source/git-1.7.7.tar.gz)= bbf85bd767ca6b7e9caa1489bb4ba7ec64e0ab35 [root@localhost ~]# cd /tmp/git_source/ [root@localhost git_source]# tar -xzf git-1.7.7.tar.gz [root@localhost git_source]# ls git-1.7.7  git-1.7.7.tar.gz [root@localhost git_source]# ./configure [root@localhost git-1.7.7]# make [root@localhost git-1.7.7]# make install [root@localhost git-1.7.7]# updatedb [root@localhost git-1.7.7]# which git /usr/local/bin/git [root@localhost ~]# ls -al /usr/local/bin/gi* -rwxr-xr-x 109 root root 5113079 Oct 13 13:14 /usr/local/bin/git -rwxr-xr-x   2 root root  120939 Oct 13 13:14 /usr/local/bin/git-cvsserver -rwxr-xr-x   1 root root  324172 Oct 13 13:14 /usr/local/bin/gitk -rwxr-xr-x 109 root root 5113079 Oct 13 13:14 /usr/local/bin/git-receive-pack -rwxr-xr-x   2 root root 2144914 Oct 13 13:14 /usr/local/bin/git-shell -rwxr-xr-x 109 root root 5113079 Oct 13 13:14 /usr/local/bin/git-upload-archive -rwxr-xr-x   2 root root 2195752 Oct 13 13:14 /usr/local/bin/git-upload-pack Just to see what it would do, or what it does, I ran git against my systems administration collection called wizdom on a Dell T-410 with one socket in use. [root@localhost git-1.7.7]# git --version git version 1.7.7 [root@localhost wizdom]# git init Initialized empty Git repository in /home/Object/Desktop/wizdom/.git/ [root@localhost wizdom]# git add . [root@localhost wizdom]# And in another window while "git add ." ran, I execute the top command to see what the processor had to say: [root@localhost ~]# top top - 16:12:43 up 1 day, 21:19,  4 users,  load average: 1.35, 0.73, 0.32 Tasks: 232 total,   2 running, 230 sleeping,   0 stopped,   0 zombie Cpu0  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st Cpu1  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st Cpu2  :  0.7%us,  0.0%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st Cpu3  :  0.0%us,  2.0%sy,  0.0%ni, 46.7%id, 50.7%wa,  0.3%hi,  0.3%si,  0.0%st Cpu4  :  0.0%us,  1.0%sy,  0.0%ni, 99.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st Cpu5  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st Cpu6  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st Cpu7  : 93.7%us,  2.7%sy,  0.0%ni,  3.3%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st Mem:   5968036k total,  5932372k used,    35664k free,   191688k buffers Swap:  8159224k total,        0k used,  8159224k free,  4938104k cached   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 16250 root      25   0 17344 1428  792 D 96.2  0.0   1:09.41 git-fast-import 16233 root      18   0 44348  29m 1036 S  1.3  0.5   0:53.89 git ... Thanks!