You are not logged in.
I just started using git recently, but I've run into a pretty serious problem. I just reinstalled Arch and now everytime I try to make a new repo by "git init" it spits back out:
Reinitialized existing Git repository in /home/jac/src/randomdir/No matter where or how I try to make a new repo. What's worse is that then after that, all other commands give me
fatal: Not a git repository (or any of the parent directories): .gitI tried to completely remove it with -Rsn, which didn't help either. I looked in the man page, but I didn't really see anything that could have helped me. I don't know much about git, but "git reset" had the same error. I saw things about different directories, but those environment variables aren't set and using the switches for them also gives the same error ![]()
Any help would be greatly appreciated!
Edit: Just tried it as root, and it works. So, now I'm thinking it's because I have libetc set up on this install, and it is interferring with things that aren't just in the home folder for some reason. I'm going to add it to the programs to ignore and test again. Things are looking up! ![]()
Edit2: Just added it to the blacklist array everywhere it was needed as far as I know, bu that still doesn't work. I also tried to use git as another, non-root user, and it works. That eliminates it being zsh too, unless my config is screwing with it somehow
Edit3: Git repos initialized by other users work just fine, it seems the only problem is making a new repo. If I continue at this pace, I might get it figured out. I'd really rather not su into a special user just to set up git repos ![]()
Edit 4: Eventually it seems the problem just went away. See post 6
Last edited by jac (2010-06-05 14:55:25)
Offline
Well, I'm completely out of ideas now. For now I'll just have to use another user to initialize all of my repos. If anyone has a suggestion, or is using libetc and git without problems, please post here. Thank you!
Offline
I don't know much about git jac, but have you tried removing the git configs: .gitconfig and .git/ from the home directory?
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
I don't think that git makes anything like that, I have no idea where it stores global/user specific configuration information. .git directories are used to store the actual repo and it's configuration information, as I understand it. Removing all of those I found didn't help either. Any other ideas?
Offline
did this ever get resolved? was libetc to blame?
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
Long story short: I don't know, but I think it wasn't libetc.
Long story: Sorry, I forgot all about this. I just used another user to initialize all my repositories for a while, and then when I made a new user (much further down the road) the problem was just gone. Just now I logged back into my old account to see if the problem still existed, but it's gone on that user with the same exact config files. I don't think libetc has been changed at all since then so I can only guess it was git or something and I just missed the change.
Offline