Yassmine
Yassmine

Reputation: 19

Forgot to fork before cloning git repository

So what I did, was copy and paste my work. Delete the repository, fork a new repository and git clone that. It didn't recognise it as a git repository so I had to do git init and now everythings a mess and it won't let me git add. Saying changes are "untracked"

Upvotes: 0

Views: 232

Answers (1)

VonC
VonC

Reputation: 1327224

A git clone would create a folder named after the remote repository.

In that folder (meaning you need to cd myRepo into the created root folder), Git will recognize the repository.

Try cloning again, and check the new local cloned repository is properly created.

Upvotes: 1

Related Questions