Git didnt clone .git folder

12 replies [Last post]
lculoto
Offline
Last seen: 1 year 47 weeks ago
Joined: 2013-07-15

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 ...

John Q.T. Nguyen
Offline
Last seen: 5 years 16 weeks ago
Joined: 2012-06-13
If everything appears to be

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.

lculoto
Offline
Last seen: 1 year 47 weeks ago
Joined: 2013-07-15
thx :) I'm afraid it's not

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.

John Q.T. Nguyen
Offline
Last seen: 5 years 16 weeks ago
Joined: 2012-06-13
I'm no Git expert, but I

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.

lculoto
Offline
Last seen: 1 year 47 weeks ago
Joined: 2013-07-15
thx for the link. Very

thx for the link. Very useful.
Git is a steep slope...

lculoto
Offline
Last seen: 1 year 47 weeks ago
Joined: 2013-07-15
Though I dont copy why, by

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 ?!

John Q.T. Nguyen
Offline
Last seen: 5 years 16 weeks ago
Joined: 2012-06-13
I think this may be the

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.

lculoto
Offline
Last seen: 1 year 47 weeks ago
Joined: 2013-07-15
Thx again. You dont fake

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!

John Q.T. Nguyen
Offline
Last seen: 5 years 16 weeks ago
Joined: 2012-06-13
That's great! I'm glad to

That's great! I'm glad to hear that you were able to get it working.

lculoto
Offline
Last seen: 1 year 47 weeks ago
Joined: 2013-07-15
Yes I could push on Github.

Yes I could push on Github. But my 'git clone' local still doesnt copy .git folder locally...

John Q.T. Nguyen
Offline
Last seen: 5 years 16 weeks ago
Joined: 2012-06-13
If I'm understanding

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.

lculoto
Offline
Last seen: 1 year 47 weeks ago
Joined: 2013-07-15
Well : I deleted everything

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 ....

John Q.T. Nguyen
Offline
Last seen: 5 years 16 weeks ago
Joined: 2012-06-13
Awesome! That's great

Awesome! That's great news.

Thanks for the suggestion for a "Resolved" tag. We'll take this into consideration, should we update the forums.

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:


Loading...
Contact us

Below are the supported keyboard shortcuts for our video player.

space
Start / stop video
shift
Go to next video
shift
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
1...9
Jump to a percentage (2 is 20%, for example)
f
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
$29
1 month
$156
6 months
10% off
$276
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
user
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.