- Window (Eclipse if Mac) > Preferences
- General > Network Connections > SSH2 > Key Management
- Generate DSA Key
- Give it a comment (your server name or username, anything is fine)
- Select all text and copy
- Save Private Key & Apply
- Team > Git > Configuration
- Add Entry
- Key: core.excludesfile
- Value: /path/to/.gitignore (Here is Bukkits)
- OK & Apply & OK
- Travel to SSH keys on Github
- Add SSH key
- Paste in Key
- Copy comment from step 5 (very end of key) and paste in Title & Add key
- Travel to New Repository on Github
- Give it a name
- Create repository
- Under Quick Setup, copy the git url (looks like: [email protected]:<username>/<repository>.git)
- Open Eclipse
- Create new Java Project (if you have an existing project, skip to step 22)
- Create new package (ex.: com.github.example)
- Create new class in package from step 20, name it anything
- Right click project, Team > Share Project
- Git & Next
- Activate checkbox for Use or create repository in parent folder of project
- Select project in list
- Create Repository & Finish
- Window > Show View > Other
- Git > Git Repositories & OK
- Expand your project in the Git Repositories
- Right click Remotes & Create Remote
- Enter Remote name (identical to project name) & OK
- Change & Finish & Save
- Right click project in Package Explorer & Team > Commit
- Select All & Give a commit message called "Initial commit" & Commit
- Right click project in Package Explorer & Team > Push Branch & Next & Finish
- Go back to Git Repositories and expand Remotes and then your project name
- Right click one of the cylinders & Configure & Advanced
- Source ref: master [branch] (Destination ref should auto populate with: refs/heads/master)
- Add Spec
- Check off Force Update & Finish & Save
- Repeat steps 37 through 40 for the other cylinder
Assuming nothing went wrong, your project is now configured for version control. You can now make changes to your code and commit & push it (step 33, different button) and an update can be requested by another user in almost real-time.
Each user after the original setup will need to import a git project using similar steps from above, but I have never done that. Good luck.