标签:des http os 使用 io strong for ar art
网上搜到的, 在zend studio 里面导入ssh key,这样就可以直接clone/push/pull github上的项目。
window -> preferences -> general -> Newwork Connection -> SSH2 -> Key Management
在这里你可以生成或导入key, 在eclipse 里面也可以用。
下面原文:
Hy fellows,
in one of my last posts I described how to use GIT under Windows.
Now as Zend released Zend Studio 8 and ZF migrates to GIT with the next major release it’s time so see how those can be matched to work together. Note that this is not fixed to Windows but should work regardless of the use OS in any environment.
Prerequisits
What do you need to start?
I assume that you already have a working GITHUB repository as
described in the last post.
Then you need a installed version of Zend Studio 8 or newer.
Installing GIT
Now you need to make your Zend Studio aware of GIT. Therefor we
need to install EGit. EGit is a module for Eclipse which makes Zend
Studio (which is based on Eclipse) understand GIT and provides
several tools for working with GIT.
Now EGit will be installed within Zend Studio. As last step you will need to restart Zend Studio (if it is not done automatically).
Security preparations
When you already used GIT you will know that it needs RSA keys. So our next step is to make new keys which will be used within Zend Studio to commit to GITHUB.
Now you can eighter use an existing key or add a new one.
To load an existing key:
It is preferred to make a new key instead of loading an existing one. Therefor:
At last, regardless is you added an existing or created a new key, click “OK” within Zend Studio to close the preferences window and save the settings. You have successfully prepared Zend Studio to be used with your GitHub account.
Connecting to GitHub
The next step is to connect our GITHUB account to Zend Studio.
This step will take several minutes as it now copies your remote
repository to your local drive.
We’re done. You have successfully connected your GIT repository
with Zend Studio.
You can now do your complete work from within Zend Studio. It supports all needed tools. Some of these tasks I will describe now:
Create a new branch
To create a new branch do the following:
Now you’re working within a new created branch.
Keep in mind to use the proper naming convention.
“hotfix/ZFxxxx” for quick fixes and “feature/XXXX” for new
features. Always use “ZFxxxx” when there is a related issue within
Jira.
Committing changes
Committing your changes is also quite simple:
I always use notes like this:
[feature/MyFeature] - changed something - another change
Now your change is stored in your local repository. To send your changes to your GITHUB repository you need to do the following:
At last your changes are also available within your GITHUB repository.
To have your change integrated within ZF2 you need to make a
“Pull-Request” from your GITHUB repository.
The above description does not only work for Zend Framework but
can also be used for other projects.
I hope you find this post interesting so I wish you a good work and
have fun with GIT.
标签:des http os 使用 io strong for ar art
原文地址:http://www.cnblogs.com/hcphp/p/3939397.html