{"thread":{"id":"28670","subject":"fatal: Not a git repository","startedAt":"2011-10-14T01:57:23Z","lastAt":"2011-10-14T02:14:41Z","messageCount":2,"participants":["T","BlackSwan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"177603","messageId":"1318557443.92591.YahooMailNeo@web114209.mail.gq1.yahoo.com","threadId":"28670","inReplyTo":null,"subject":"fatal: Not a git repository","fromName":"T","fromEmail":"blackswanmabak@yahoo.com","sentAt":"2011-10-14T01:57:23Z","receivedAt":"2011-10-14T01:57:23Z","isPatch":false,"sender":{"key":"blackswanmabak@yahoo.com","avatar":null},"body":"I am on RedHat Linux Server 5.7, installed git and all worked great.\n\nPerformed 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.\n\nThe 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:\n\n\n\n[root@localhost wizdom]# git add .\nfatal: Not a git repository (or any of the parent directories): .git\n\n\n\n\nAny idea on how to fix this problem so that I can get on with using git?\n\nWizdom 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.\n\n\n============================================\n[root@localhost ~]# mkdir /tmp/git_source\n[root@localhost ~]# cp /home/Object/Desktop/100511/git/git-1.7.7.tar.gz /tmp/git_source/.\n[root@localhost ~]# openssl dgst -sha1 /tmp/git_source/git-1.7.7.tar.gz\nSHA1(/tmp/git_source/git-1.7.7.tar.gz)= bbf85bd767ca6b7e9caa1489bb4ba7ec64e0ab35\n[root@localhost ~]# cd /tmp/git_source/\n[root@localhost git_source]# tar -xzf git-1.7.7.tar.gz\n[root@localhost git_source]# ls\ngit-1.7.7  git-1.7.7.tar.gz\n[root@localhost git_source]# ./configure\n[root@localhost git-1.7.7]# make\n[root@localhost git-1.7.7]# make install\n[root@localhost git-1.7.7]# updatedb\n[root@localhost git-1.7.7]# which git\n/usr/local/bin/git\n[root@localhost ~]# ls -al /usr/local/bin/gi*\n-rwxr-xr-x 109 root root 5113079 Oct 13 13:14 /usr/local/bin/git\n-rwxr-xr-x   2 root root  120939 Oct 13 13:14 /usr/local/bin/git-cvsserver\n-rwxr-xr-x   1 root root  324172 Oct 13 13:14 /usr/local/bin/gitk\n-rwxr-xr-x 109 root root 5113079 Oct 13 13:14 /usr/local/bin/git-receive-pack\n-rwxr-xr-x   2 root root 2144914 Oct 13 13:14 /usr/local/bin/git-shell\n-rwxr-xr-x 109 root root 5113079 Oct 13 13:14 /usr/local/bin/git-upload-archive\n-rwxr-xr-x   2 root root 2195752 Oct 13 13:14 /usr/local/bin/git-upload-pack\n\n\n\nJust 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.\n\n\n[root@localhost git-1.7.7]# git --version\ngit version 1.7.7\n[root@localhost wizdom]# git init\nInitialized empty Git repository in /home/Object/Desktop/wizdom/.git/\n[root@localhost wizdom]# git add .\n[root@localhost wizdom]#\n\n\n\nAnd in another window while \"git add .\" ran, I execute the top command to see what the processor had to say:\n\n[root@localhost ~]# top\ntop - 16:12:43 up 1 day, 21:19,  4 users,  load average: 1.35, 0.73, 0.32\nTasks: 232 total,   2 running, 230 sleeping,   0 stopped,   0 zombie\nCpu0  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st\nCpu1  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st\nCpu2  :  0.7%us,  0.0%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st\nCpu3  :  0.0%us,  2.0%sy,  0.0%ni, 46.7%id, 50.7%wa,  0.3%hi,  0.3%si,  0.0%st\nCpu4  :  0.0%us,  1.0%sy,  0.0%ni, 99.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st\nCpu5  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st\nCpu6  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st\nCpu7  : 93.7%us,  2.7%sy,  0.0%ni,  3.3%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st\nMem:   5968036k total,  5932372k used,    35664k free,   191688k buffers\nSwap:  8159224k total,        0k used,  8159224k free,  4938104k cached\n\n  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND\n16250 root      25   0 17344 1428  792 D 96.2  0.0   1:09.41 git-fast-import\n16233 root      18   0 44348  29m 1036 S  1.3  0.5   0:53.89 git\n...\n\n\n\nThanks!\n"},{"id":"177604","messageId":"1318558481015-6891093.post@n2.nabble.com","threadId":"28670","inReplyTo":"1318557443.92591.YahooMailNeo@web114209.mail.gq1.yahoo.com","subject":"Re: fatal: Not a git repository","fromName":"BlackSwan","fromEmail":"blackswanmabak@yahoo.com","sentAt":"2011-10-14T02:14:41Z","receivedAt":"2011-10-14T02:14:41Z","isPatch":false,"sender":{"key":"blackswanmabak@yahoo.com","avatar":null},"body":"Sorry.... I figured it out, and it was right in front of me.\n\n[root@localhost wizdom]# git init\n\n\nThanks all!\n\n--\nView this message in context: http://git.661346.n2.nabble.com/fatal-Not-a-git-repository-tp6891065p6891093.html\nSent from the git mailing list archive at Nabble.com.\n"}]}