Steps for Java EE development using GitHub and Eclipse

Source: Internet
Author: User
Tags git client

  1. Download git client: Link: http://pan.baidu.com/s/1jIueUEy password: 7GEF;
  2. Download Eclipse Java EE client: HTTP://WWW.ECLIPSE.ORG/DOWNLOADS/PACKAGES/ECLIPSE-IDE-JAVA-EE-DEVELOPERS/KEPLERSR2;
  3. Go to GitHub to register, get to User.Name and User.email, that is, the corresponding user name and registered mailbox;
  4. New Warehouse (Repository), assuming the name is IRepository, then the warehouse URL is https://github.com/username/iRepository
  5. Open git client: (all starts with $, is the operation command on the GIT client)
  6. $ git config--global user.name "username"//here fill in User name
  7. $ git config--global user.email "useremail"//fill in the email here
  8. $ git config--global color.ui Auto//format
  9. $ ssh-keygen-t RSA//Generate Ssh-key, a blank space, will be generated in the GIT client installation directory. SSH folder, copy the contents of this folder named Id_rsa.pub
  10. Open the GitHub page-->settings-->ssh and GPG keys-->new SSH Key, add the Sshkey name and copy and paste the contents of the. Ssh/id_rsa.pub:
  11. $ git clone [email protected]:username/irepository.git//clone the repository to a local, clone followed by the repository link, which is obtained in such a way as:
  12. Open Eclipse, create a new Java project, and put the project in the local Git repository folder
  13. $ git status//view warehouse status, which lists different files from the remote repository
  14. Select the file that needs to be uploaded (because it's the first time, so it's all new) to the remote repository, for example, a new file called helloworld.jsp, then:$ git add helloworld.jsp
  15. $ git commit-m "add a JSP file: helloworld.jsp"//Submit to cache
  16. $ git push//submit to remote repository
  17. Since then, can be on different computers on the same project remote synchronization development, if you change the computer, repeat the above steps, the generation of SSH key can be cloned warehouse to the local
  18. Open eclipse--> Right-click-->import--> Search: git-->projects from git-->existing local repository--> add native git directory-- > select the warehouse-->next to import ...
  19. Continue to develop ...
  20. Go to the GIT client and repeat add, commit, and push operations
  21. Complete...

Java EE Development steps using GitHub and Eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.