Eclipse Config GitHub code base (take Windows7 as an example)

Source: Internet
Author: User
Tags using git

1. Install git

Install git first. This is just about installing the Git method in Windows.

Download the git Windows installation file from Git, and go to the next step to select the installation component:

Choose Git Bash here, so there's a command line available. Because Git's own GUI is basically not used in the back.

Article Source: http://blog.csdn.net/twlkyao/article/details/26340685

2. Create a new project on GitHub

Open GitHub, click the "+" sign in the top right corner, then select New code base,

Then give the code base a good name, write a simple description of the code base, initialize the repository Readme file, select the appropriate open source protocol.


Creating a good code base


The most important is the URL that starts with HTTPS . Note This is the HTTPS protocol. So the online teaching you with SSH or something is weak, and now can not be used at all. No need to install SSH.

3. Installing Egit in Eclipse

open Eclipse, click Help to select Install New software ..., write the name and location, link address: http://download.eclipse.org/egit/updates , just choose install Eclipse Git Team provider and restart eclipse after the installation is complete.




configuring Git in 4.EclipseClick Window-->preferences-->team-->git-->configuration, in the User Settings column, click Enter Entry, add user.name * * * and User.email *************, as shown below:

5. Using Git for project management

Create a new project first, then right-click on the Project Team-->share project ... and choose Git. the following panel appears

Tick the use or the Create repository in parent folder of Project representative will be the project root directory when Git's local repository . The following panel appears:


Click Create Repository, then click Finish, This ends The local warehouse has been built. .

After changing the code, right-click on the Team-->commit to commit the updated code to the local repository , next to how to upload the code to GitHub.

6. Configure the public key pairSelect Window-->preferences-->general-->networking connections-->ssh2 for Key management in eclipse. If you already have a key that you can import in the Key Management tab bar, you will need to generate an RSA key pair to identify it when you establish communication with the remote. 7. Submit the code to the remote repository

Select Team-->remote-->push, The URI inside is the one that the GitHub hints at the beginning of the first creation (I say the very important URL). Note that the protocol is HTTPS, configure the user name and password, and select storage to prevent each subsequent commit from entering a user name and password.


Click Next, Select Add All Branches Spec, then click Next.



The following page appears, then select Finish to be good.


You will then see the following page:


After the code is modified, ">" appears on the file that has code churn in the project.


You can submit the code locally before committing it to the remote code base.

After committing to the remote code base, you can see the remote code base as follows:


Resources:

Click to open link

Click to open link

Click to open link


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.