It is not easy to write, please indicate when reprinting (http://shihlei.iteye.com/blog/2265159)
Use Eclipse to create a project, Share to Git repository, and push to GitHub
For the basic use of EGit, please refer to "The Use of EGit (Git Eclipse Plugin) "
Eclipse:Luna Service Release 2 (4.4.2)
EGit: Eclipse built-in version
A project Share local Git repository
1)Team > Share > Git
Note:
The red box needs to be selected to enter the following page:
Click Create Repository to create a repository, and then finish,
Although it is not recommended to create in eclipse, it seems to be fine.
2. Edit the .gitignore file
1) Open Eclipse Navigat try, open .gitignore file
Enter the file types you want to ignore when submitting
Mine is as follows:
# Compiled source # ################### *.with *.class *.dll *.exe *.O *.so server_log_home_IS_UNDEFINED # Packages # ############ # it's better to unpack these files and commit the raw source # git has its own built in compression methods *.7z *.dmg *.gz *.iso *.jar *.rar * .tar *.zip # *. gitignore # Logs and databases # ###################### *.log # OS generated files # ###################### .DS_Store* ehthumbs.db Icon? Thumbs.db # Editor Files # ################ *~ * .swp # Gradle Files # ################ .gradle # Build output directorates /target */target /log */log /build */build where logs # IntelliJ specific files/directories out .idea *.ipr * .iws *.iml atlassian-ide-plugin.xml # Eclipse specific files/directories .classpath .project .settings .metadata # NetBeans specific files/directories .nbattrs *.orig
Three submit the task to the local warehouse
Team > Commit
Create a project on Github
1) Log in to Github, click the "+" in the upper right, name it, and create a remote repository
After clicking Create repository, it will return a remote repository address after the creation is successful.
Five local projects push remote warehouse
1)Team —》 Remote —》 Push
2)source ref (oringn) —》 Add Spec
After that, basically continue to Next until finish.
Six View
Finally, the remote warehouse is also available, and you're done