I want to put my project to the github, but I always failed.
I use following steps to do it:
- create a new repository on github,
- In my disk, I create a folder LocalGit and initial it. Then I use
git pull git@github.com:myAccount/myProject.git - I add the project directory TestPro to the LocalGit, and then using:
git add .
git commit -m "inital" - Finally, I try to push it to the github, using :
git push -u origin master
After that, I open the github in safari, and my project exists.
But the problem is the folder TestPro can’t be open, and there is nothing under it.
Could anyone tell me how to add existing project to the github?
I have read the instructions on github, but I still can’t find the solution and where am I wrong.
The local project I refer is a local git repository. Does it matter? should I checkout it first?
Thanks!
After created you project on github, you have :
git clone git@github.com:myAccoun/myProject.gitgit pull is git fetch and git merge. Used it after to refresh your repository.
.git is automatically manage by git, so it’s no necessary to add to track.