I have created a Git Repository on bitbucket. The repository is empty now. I have an Eclipse project, in my system, that I want to push(using Eclipse - EGit) into the repository I created. How do I do it?
I have no knowledge of doing this by command line, so, please, give me the details for doing this by using the GUI of Eclipse. Any links that might help, also are appreciated.
First, make sure you already installed EGit or other git control plugins on your Eclipse.
Second, add Git Source Control to your existing Android Eclipse Project (local) and create a local Git Repository for the Project, by following the steps below: (or check this video)
- right click your project -> Team -> share project
- check the option of "Use or create repository in parent folder of project"
- select your project
- click the button of "create repository"
- hit "finish"
- right click your project -> Team -> Add to Index
- right click your project -> Team -> commit
Then push your Project (now is under local Git Source Control) to a Remote Repository such as GitHub.com or BitBucket.org, by following the steps below: (or check this video)
- right click your project -> Team -> remote -> push
- type in the URL of the remote repository you are using
- type in username and password, then hit "next"
- click the button of "Add All Branches Spec"
- click "next"
- click "finish"
Okie.. So I figured it out.
Steps :
Thats it.
Note ::: I am not yet that comfortable with Git, so, probably, the steps may or may not be the correct way or the easiest way to do it. But, that said, these steps worked for me. They might work for you too.
Hope this helps..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With