`
天梯梦
  • 浏览: 13762103 次
  • 性别: Icon_minigender_2
  • 来自: 洛杉矶
社区版块
存档分类
最新评论

Aptana Studio 3 and GitHub 使用

 
阅读更多

I started using GitHub services few weeks ago and I had few problems with my favorite PHP IDE [Zend Studio 9]. Even if there is a new feature for GitHub Projects on the latest version I couldn’t manage to make it work properly with a private multi-user GitHub Repository. As a result I switched to a free PHP IDE which satisfies all my needs for GitHub Projects.

 

 

In this article I will show you how to add your GitHub Project, Pull your project from GitHub, work with it, Commit and finally Push it to GitHub Repository.

 

 

Create PHP Project – Aptana Studio

 

 

Step 1: Go to File -> New -> PHP Project (if PHP Project is not on the list, click on Project… and select PHP Project inside the pop-up window).

 

Step 2: Set a name for your project inside Project Name field.

 

Step 3: Choose the location of your project on your local drive. To do this deselect Use Default Location checkbox and click on Browse.

 

Step 4: Choose PHP Project Compatibility by selecting a PHP version from Compatibility select-list. I recommend you to use PHP 5.3.x for the moment since it is the latest stable version of PHP – check the latest stable version on PHP.net

 

Step 5: Click Finish. Your project will be added into Project Explorer Perspective located on the left side of Aptana Studio 3.

 

 

In order to use our current project with GitHub we have to share and link our project to a GitHub Repository. I will show you how to do this in the following steps.

 

 

Share Your Project to a local repository

 

 

Step 6: Right-Click on Project Name, select Team -> Share Project…. After you clicked on Share Project there will appear a new window.

 

Step 7: Click on Project Name as it appears under Project column on the new window. Note: Do not click on Path or Repository because it will not select the instance of the project.

 

Step 8: After you clicked on the Project Name, there will be an active button called Create on the bottom of the window. Click on it. Do not change the value of the input field next to the button because it automatically sets the address of .git-config file inside your Project Folder.

 

Step 9: By clicking the Create button you will notice that Repository field will be populated with the .git-config file address. Click on Finish.

 

 

In this moment you will notice that your project name will have [master] added at the end of the name. This means that the project is shared. In the following steps I will show you how to link the project to your GitHub Public/Private Repository.

 

 

Link to Github

 

 

Step 10: Right Click on Project NameSelect Team -> Add Remote…. A new window called Add Git Remote will pop-up.

 

Step 11: Set the New Remote Name to origin if it is not already set by default to origin.

 

Step 12: Remote URI represents the GitHub Repository Address. You will note that on your account you have 3 different addresses: SSH, HTTP, Git Read-Only. You will need to copy and paste the SSH address inside Remote URI field. Ex: git@github.com:danielrosca/MyRepository.git

 

Step 13: Select Track checkbox and click OK.

 

 

Your Project is now linked with GitHub Repositories.
Note: You need admin privileges to a repository in order to access its SSH address.

 

 

Check Aptana Studio – GitHub Connection

 

 

Let’s check if it works or not: Right Click on Project Name – select TeamPull. It will take a while, but after that you should have all the repository files inside your Aptana Studio PHP Project.

 

 

Commit your Aptana Studio PHP Project Changes

 

 

Edit any of your file/s and save it/them. In order to share your edit you have to commit and push your changes to GitHub. If you followed all the steps by now it will be easy to continue and commit your changes to your GitHub Repository.

 

 

Step 14: Right click on Project Name – select TeamCommit.

 

Step 15: A new window will appear. It will contain all the files that you have added or changed in the left side. In order to commit your changes you have to move the files to the right side. Aptana Studio provides functionality for one-file move or all-files. Move any of your reviewed files to the right side.

 

Step 16: You can not commit if you not write a message. In the message box write what have you changed or added to your repository and press Commit.

 

 

All the changes were committed to your local repository and they are not visible on GitHub. You can continue to work with your project on your local repository and commit as many times as it is required. You are not forced to push to GitHub any single commit. Follow the next steps in order to push your changes to GitHub Repository.

 

 

Push to Github

 

 

Step 17: Right click on Project NameTeamPush: it will take a while and after all your local commits were pushed to GitHub you will receive a message on Git console.

 

 

Right now you can go to GitHub website and refresh your repository. You should be able to see all your changes and commit messages.

 

 

One Comment to “Aptana Studio 3 and GitHub”

 

[...] with this. I assume that you already have a project created [If not, you have a tutorial for this here]. Moreover, I assume that you also have a FTP [...]

 

来源: http://www.danielrosca.ro/blog/en/aptana-studio-3-and-github/

 

分享到:
评论

相关推荐

    aptana studio 3

    Aptana Studio 3是一款强大的集成开发环境(IDE),专为Web开发者设计,特别是对JavaScript、HTML和CSS...下载并尝试使用Aptana Studio 3,你将拥有一个强大且易于使用的开发环境,帮助你更高效地构建高质量的Web应用。

    Aptana Studio 3.rar

    3. **集成版本控制**:Aptana Studio 3内置了Git支持,允许开发者进行版本控制操作,如提交、推送、拉取和分支管理,无需离开IDE。 4. **调试工具**:它提供了一套强大的调试工具,包括断点设置、步进执行、查看...

    Aptana Studio 3添加JQuery代码提示

    ### Aptana Studio 3 添加 JQuery 代码提示的详尽指南 #### 一、背景与动机 在探索前端开发的世界时,我们经常会遇到各种各样的工具和框架,它们为我们的编程之旅提供了极大的便利。《锋利的JQuery》作为一本优秀...

    Aptana Studio 3.0汉化包(直接覆盖)

    对于中文用户来说,官方版本的语言设置可能并不友好,而“Aptana Studio 3.0汉化包”就是为了解决这个问题,让开发者可以更方便地使用中文界面进行编程。 汉化包的使用方法非常简单,只需要将提供的汉化文件覆盖到...

    Aptana Studio Beginner’s Guide.pdf

    尽管扫描文档存在一些识别错误,但基于现有信息,我们依然可以构建出一个关于Aptana Studio使用、Web开发、书籍出版和作者背景的知识体系。对于希望学习如何使用Aptana Studio进行Web开发的读者而言,这本书是一个很...

    aptana studio 1.5.1 crack

    aptana studio 1.5.1 crack aptana studio 1.5.1 crack aptana studio 1.5.1 crack

    Aptana_Studio_3 plugins插件

    在"Aptana_Studio_3 plugins插件"这个主题中,我们主要关注的是Aptana Studio 3如何通过插件来扩展其功能。插件是软件中一种可添加的组件,它们能提供额外的功能或改善现有功能的性能。在Aptana Studio 3中,这些...

    AptanaStudio2.0汉化教程2011-3-28日更新

    7. **更新维护**:由于汉化版可能不是官方支持的版本,所以当Aptana Studio有新版本发布时,用户需要考虑是否继续使用汉化版,因为新的更新可能会覆盖已有的汉化,或者与汉化包不兼容。 通过这个汉化教程,用户不仅...

    Aptana_Studio_3_Setup_3.6.1.part1.rar

    Aptana_Studio_3(第一卷, 共三卷)

    aptana studio 3 含汉化包

    Aptana Studio 是一个集成式的Web应用程序开发环境,它不仅可以作为独立的程序运行,而且还可以作为Eclipse插件使用。所以,如果已经安装了Eclipse的话,就可以将Aptana作为插件直接安装到Eclipse环境中。这里提供...

    Aptana Studio支持GBK编码的方法

    在探讨“Aptana Studio支持GBK编码的方法”这一主题时,我们不仅将深入解析标题与描述中提及的关键知识点,还将从更全面的角度出发,为用户提供一套详尽的操作指南,旨在帮助那些在使用Aptana Studio进行Web开发时...

    Aptana_Studio_3_Setup_3.0.4.exe(Aptana Studio )

    Aptana Studio 是一个集成式的Web应用程序开发环境,它不仅可以作为独立的程序运行,而且还可以作为Eclipse插件使用。所以,如果您已经安装了Eclipse的话,就可以将Aptana作为插件直接安装到您的Eclipse环境中。

    Aptana studio 安装完启动时中出现Failed to load the JNI shared library

    Aptana Studio 安装完成后启动时出现 Failed to load the JNI shared library 的解决方法 Aptana Studio 是一个功能...通过添加 Aptana studio.ini 文件中的语句,我们可以解决这个问题,愉快地使用 Aptana Studio。

    Aptana Studio 3

    Aptana Studio 3 exe 安装文件,windows 环境,如果需要 linux , feel free to connect me

    aptana studio 3提示jquery

    标题“aptana studio 3提示jquery”指的是如何在Aptana Studio 3中设置和使用jQuery库,以便在编写代码时获得智能提示和代码补全功能。为了实现这一目的,我们需要遵循以下步骤: 1. **下载与解压**:首先,你需要...

    Aptana Studio 3.4

    ** Aptana Studio 3.4 知识点详解 ** Aptana Studio 3.4 是一款专为Eclipse 3.4设计的强大Web开发集成环境。它将Eclipse的优秀特性与专业的Web开发工具集相结合,为前端开发者提供了一个高效、全面的开发平台。下面...

    aptana studio 1.2最新汉化方法

    3. **修改 Aptana Studio 的启动参数:** - 修改 Aptana Studio 的快捷方式属性或者直接修改启动脚本中的启动参数。 - 将启动参数 `-clean` 添加进去,确保 Aptana Studio 重新加载配置。 - 例如: ``` "C:\...

    Aptana Studio支持中文的方法

    通过上述步骤,我们可以有效地解决 Aptana Studio 在中文环境下使用时遇到的各种问题,从而提高开发效率和代码质量。值得注意的是,随着技术的不断进步,Aptana Studio 也在持续更新和完善其功能,因此建议定期关注...

    Aptana_Studio_3_Setup_3.0.2

    Aptana_Studio_3_Setup_3.0.2.exe Aptana是一个非常强大,开源,JavaScript-focused的AJAX开发IDE。它的特点包括: *JavaScript,JavaScript函数,HTML,CSS语言的Code Assist功能。 *Outliner(大纲):显示JavaScript,...

Global site tag (gtag.js) - Google Analytics