I have java project using Eclipse. I created an account and repository in github and try to synchronise this repo with my project. But when i try to add or clone the rpo in gitHub desktop app it doesn't see my project structure. what should i do?
Asked
Active
Viewed 2,232 times
0
-
Did you commit and push the files to your repo? – Andrew Li Jun 16 '17 at 12:53
-
checkout this https://stackoverflow.com/questions/20654719/push-eclipse-project-to-github-with-egit – Kalaiselvan Jun 16 '17 at 12:56
-
@AndrewLi i tried. but there were nothing to commit. – andron Jun 16 '17 at 14:05
2 Answers
2
Once you created the repository on github, you have to add that remote into your repository.
git remote add origin git@github.com:USERNAME/REPOSITORY
after that, you can
git push origin master
and see that your project is now updated

sensorario
- 20,262
- 30
- 97
- 159
-
it gave the error: Not a git repository (or any of the parent directories): .git – andron Jun 16 '17 at 14:05
1
Did you get any error messages?
It should be pretty straightforward using the command line. From the directory where you want to clone the repo,
git clone http://repo-url.git
should take care of it.

Brandon Spencer
- 11
- 3