如何使用 Aptana Studio 3 设置 Git?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9677837/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to set up Git with Aptana Studio 3?
提问by o_O
I'm new to Git. I use Aptana 3 for everything and I really want to use it when working with Git as well. The problem I'm running into is that everything I read seems geared towards people who know Git or have an idea of what is going on. I have neither. I've never even used GitHub before not even to clone a project.
我是 Git 的新手。我对所有事情都使用 Aptana 3,而且我真的很想在使用 Git 时也使用它。我遇到的问题是,我阅读的所有内容似乎都面向了解 Git 或了解正在发生的事情的人。我都没有。在克隆项目之前,我什至从未使用过 GitHub。
As far as I've gotten with the Aptana setup is going into the preferences and setting the path to my git executable. I've restarted it and everything and it appears to have accepted this new path, however, there is nothing different. From reading some of these forums I'm supposed to have access to git commands now, which I have a "commit" command, but no push or pull.
据我所知,Aptana 设置正在进入首选项并设置我的 git 可执行文件的路径。我已经重新启动它和一切,它似乎已经接受了这条新路径,但是,没有什么不同。通过阅读其中一些论坛,我现在应该可以访问 git 命令,我有一个“提交”命令,但没有推或拉。
Is there a step-by-step documentation out there, website tutorial, anything for Git noobs and Aptana 3? I spent the day trying to figure it out and my shop really wants to have it set up and running tomorrow for our current project. They've never used it either so are learning how to set it up on their Linux machines. It's up to me to figure it out for the Mac.
是否有分步文档、网站教程、Git noobs 和 Aptana 3 的任何内容?我花了一天的时间试图弄清楚,我的商店真的希望明天为我们当前的项目设置和运行它。他们也从未使用过它,因此正在学习如何在他们的 Linux 机器上设置它。由我来为 Mac 找出答案。
I know my issue stems a bit farther then just getting it set up but for now I'd be satisfied in knowing that I have it proper and can push and pull from the central repository once I get that set up as well.
我知道我的问题与设置它的关系有点远,但现在我很满意知道我有它正确并且可以在我设置好后从中央存储库中推送和拉取。
So tutorial, hand-holding, anything available out there? Thanks.
那么教程,手持,还有什么可用的吗?谢谢。
回答by user2410921
I know this was writen much later then asked for, but for future reference
我知道这是在很久以后才被要求写的,但供将来参考
Try this as a starting place,
试试这个作为起点,
1: Go to your account on github and create the repo you want to use. Maybe add a md file.
1:转到您在github上的帐户并创建您要使用的repo。也许添加一个 md 文件。
2: Then in Aptana, File - Import - Git - Git Repository as New Project, follow directions on screen for github username & password and the url for the repo (you can go to your github account and copy the url ('https://github.com/userName/repoName.git')
2:然后在 Aptana 中,文件 - 导入 - Git - Git 存储库作为新项目,按照屏幕上的说明获取 github 用户名和密码以及 repo 的 url(您可以转到您的 github 帐户并复制 url (' https:/ /github.com/userName/repoName.git')
3: Do some work in Aptana, add files, folder, etc. then in Aptana's project browser right click on the project name, team - stage, commit, push (in that order)
3:在Aptana中做一些工作,添加文件,文件夹等然后在Aptana的项目浏览器中右键单击项目名称,团队-阶段,提交,推送(按顺序)
4: Go to github and marvel at your new work
4:去github,惊叹你的新作品
I am doing this from a windows machine, but it should be similar on Mac
我是在 Windows 机器上执行此操作,但在 Mac 上应该类似
回答by o_O
I also run Aptana 3 on an iMac. There's a couple of tutorials out there to get GIT running, but what I found easiest by far is to install GitHub for Mac. That takes care of all the installing and required libraries, and the next time you run Aptana, it will automatically recognize the executable.
我还在 iMac 上运行 Aptana 3。有几个教程可以让 GIT 运行,但我发现到目前为止最简单的是安装 GitHub for Mac。这会处理所有安装和所需的库,下次运行 Aptana 时,它会自动识别可执行文件。
You can download that app over here: http://mac.github.com/
您可以在此处下载该应用程序:http: //mac.github.com/
回答by Bijendra
I worked using Aptana with git for some time, you can commit the changes and compare the files using aptana but for push,pull or other operations, use terminal to execute the commands.
我使用 Aptana 和 git 工作了一段时间,您可以使用 aptana 提交更改并比较文件,但对于推、拉或其他操作,请使用终端来执行命令。
Aptana doesn't gives options for push and pull operations.
Aptana 不提供推和拉操作的选项。
回答by Laura
1- You can find this useful www.screenr.com/2d7s -if you find an error saying "Untracked working tree file ......" then you go to aptana's console an move into the correct folder (where you wanna save the files)- if not just jump to step 2.
1- 您可以在 www.screenr.com/2d7s 上找到此有用的信息-如果您发现“未跟踪的工作树文件......”的错误,那么您将转到 aptana 的控制台并移至正确的文件夹(您要保存的位置)文件)- 如果不只是跳到第 2 步。
2.-Then you just clone the repo you want, follow help.github.com/fork-a-repo/
2.-然后你只需克隆你想要的repo,按照help.github.com/fork-a-repo/
Works for me :)
对我有用:)
回答by alexscjava
git options stopped to show up in Aptana 3, and you only see the option "Apply patch", the solution is:
git options 停止显示在 Aptana 3 中,并且您只看到“应用补丁”选项,解决方案是:
Restart the application.
重新启动应用程序。
Observation: I use Aptana 3 in Ubuntu 14.04.
观察:我在 Ubuntu 14.04 中使用 Aptana 3。