Eclipse uses git

Source: Internet
Author: User

1. Install git

:http://git-scm.com/download, install git and set environment variables, C:\Program Files (x86) \git\bin into system variables.

2. Set initialization parameters

Enter the following command at the command line:git config--global user.name = "Your user name"git config--global user.email = "Email Address"3. Get SSHPublic Keyopen git bash git, enter the command ssh-keygen-t rsa-c "email address", all the way to enter, then in the directory will generate. SSH directory, my directory is: C:\Users\Arvin\.ssh4. Add a public key on GitHub

click Add.
5, test whether successfully entered in git bash command ssh-t [email protected] After you see the following information, indicating success!
6. Create a project on GitHub


Click Create to create a project on GitHub. 7. Use Eclipse to sync your local project to GitHub
    • To go to the local project and right click on git Init here, a. Git directory is generated, which is a hidden directory and needs to be set to display the hidden directory.


    • Open Eclipse, select project Right →team→share project, choose Git, as follows:



At this point our project will be displayed in this way:

It's not over yet, keep going down.


The items at this point are shown below:

Next commit to GitHub.





Refresh the GitHub project as follows:



Eclipse uses git

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.