Git didnt clone .git folder
Hi
I was trying to locally clone a project from github. The copy worked but there is no .git folder into it.
Git datas doesnt show up neither on Github. What did I missed ? My initial 'git remote add' (local->github) ? My 'git clone' (github->local)?
Any idea welcome ...
thx :)
I'm afraid it's not that.
git status : not a repository ...
Could you see your .git folder on a Github repo? Because I cant.
I'm no Git expert, but I think there's quite a few things that could be causing that particular error message... I would suggest maybe searching through some of the threads on Stackoverflow to see what the cause and solution was for other people who ran into the same issue.
thx for the link. Very useful.
Git is a steep slope...
Though I dont copy why, by doing every step of your videos, nothing works.
I cant type in :
git remote add origin https://github.com/me/code.git
I got :
'origin already exists" !?
I've simply click on 'create a repo' on github, as you told, and gave a name.
Why origin already exists ?!
I think this may be the problem that you're encountering. In any case, if you're having some difficulty with setting up your first Git repository, Github also has some tools available for download that can help get you started with the initial installation.
Thx again. You dont fake helping ! (but I found already this article).
After reading it I could go ahead by typing another name than 'origin', although I dont copy why origin already exists in an absolutely empty repo!
That's great! I'm glad to hear that you were able to get it working.
Yes I could push on Github. But my 'git clone' local still doesnt copy .git folder locally...
If I'm understanding everything correctly and you're able to push changes from your local repo to Github, then you should have a .git folder somewhere on your local machine, similar to this discussion on Stack Overflow. That thread also has links to other resources for getting up to speed on Git as well, including a Free eBook Pro Git.
Well : I deleted everything and 'origin' passes through now when creating the first remote. Ouf!
Then I cloned it again on my laptop. This time eveything went fine there also: .git was there !
Everything ends up good !
Thx for your time JQT :-)
PS I dont see the 'resolved' flag anywhere ....
Awesome! That's great news.
Thanks for the suggestion for a "Resolved" tag. We'll take this into consideration, should we update the forums.
If everything appears to be in working order and you're not receiving any error messages, my guess is that you need to enable the ability to see hidden files/folders in your windows/finder.