简体   繁体   中英

How to connect local project to github repository

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?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM