Aptana studia is a plugin to Eclipse, which contains many useful modules (like PyDev) and amongst many also GIT module. However this module is different than EGit ( and EGit cannot be installed because it conflicts with Aptana Git)so manual on Github is not applicable. So how does it work? On my recent project I’ve tried to use it and here is quick guide how to create project and push it to Github.
- Create project on GITHub. Register your SSH key with project (If you do not know how, surely there is a tutorial on Github).
- In Eclipse in Navigator or Project Explorer right click on project folder and select Team/Share Project …
- Select Aptana Git and click Next
- Select proposed location for GIT repository, click Create and Finish
- Select files you do not want to include in version control (temp files, test data, etc.) in Navigator or Project Explorer, right click and select Team/ Add to .gitignore
- Select project folder, right click and select Team/Commit …
- In dialog choose .gitignore file – move it to right (Staged Changes) and click Commit. This has to be done because Aptana plugin will remove unwanted files from unstaged files only after .gitignore is committed.
- Now click on project folder again, right click and select Team/Commit … and commit all remaining files.
- Click on the project folder, then right click and select Team/Remotes/Add…
- In dialog fill Remote Name, Remote URI (something like email@example.com:your_name/your_project.git) and click OK.
- Now you need to push project to remote – first time you should do it from terminal – for two reasons – first to associate local branch with remote branch (I did not found any way how to do it in Eclipse), second reason is that for first time git will require to confirm authenticity of remote key – if process is run from Eclipse, it gets stuck. This is command to push:
cd your_project_directory git push --set-upstream your_remote_name
You may need to pull remove branch first if you already have some files there:
git pull your_remote_name
- From now on you can work normally work with Aptana Git – commit all changes you do, and push changes to Github – via context menu Team/Push