GitHub Quick Start
GitHub Student
Overview
Version control
Branching
How to Save project to GitHub
Create a new repository at GitHub (don’t check box to create README) and copy URI
In Eclipse
Window -> Show View -> Git Repositories
Clone
Paste URI in Eclipse enter user name and password, Finish
Right click project -> Team -> Share Project images
Choose Use or create repository in parent folder of project, click Create Repository
Finish
?s = untracked (not staged or committed) Icons
Staged = about to be committed
Committed = "records changes to the repository", used in connection with your local repository
Repository = an on-disk data structure which stores metadata for a set of files and/or directory structure, one per project
Push = sends to a remote repository
Pull = a Fetch followed by a Merge
Fetch = gets from a remote repository
Merge = combines repositories
Window -> Show View -> Other -> Git -> Git Staging -> select all Unstaged Changes, drag to Staged Changes, and type Commit Message -> Commit and Push button
If no Commit and Push button, click Commit icon at top right of Git Staging view then right click the repository in the Git Repositories view and Push.
If that doesn’t work
Expand Repositories, Remotes, right click origin and click Configure Push
Ref mappings -> Add HEAD:refs/heads/master
Save and Push
If authentication error:
Open from GitHub
First time:
File -> Import -> Git -> Clone URI -> Paste URI (GitHub project URL) -> Import existing Eclipse projects -> Next -> Finish
OR
Git Repositories -> Remote -> Fetch
then File -> Import -> Existing Projects -> browse to local repository
Other Resources
Basic GitHub info
https://guides.github.com/activities/hello-world/
User Guide
http://wiki.eclipse.org/EGit/User_Guide
In depth Eclipse info
http://www.vogella.com/tutorials/EclipseGit/article.html