简体   繁体   English

Windows 8 + Git +作曲家+ SSH

[英]Windows 8 + Git + Composer + SSH

So, I've been using ubuntu linux for a few months and loved it for my web dev. 因此,我已经使用ubuntu linux几个月了,并为我的Web开发人员所爱。 Everything simply works! 一切都正常!

But I switched back to windows because linux sadly doesn't run 90% of my apps :( 但是我切换回Windows,因为遗憾的是linux无法运行90%的应用程序:(

So now I have a question, how do you work with git, composer and ssh on windows? 所以现在我有一个问题,您如何在Windows上使用git,composer和ssh? Should I setup a linux virtualbox or is it possible to be able to work comfortably without it? 我应该设置linux virtualbox还是没有它就能舒适地工作?

"TortoiseGit" is a nice extension if you prefer some graphical support, and this needs "msysgit" to give the git commands on windows - which also brings you "git bash" if you prefer the command line. 如果您更喜欢某些图形支持,则“ TortoiseGit”是一个不错的扩展,并且需要“ msysgit”在Windows上提供git命令-如果您更喜欢命令行,还可以为您带来“ git bash”。 "msysgit" could be installed standalone. “ msysgit”可以独立安装。

SSH under Windows is always Putty. Windows下的SSH始终是Putty。 Grab the newest release 0.63, it has security fixes. 抓住最新版本0.63,它具有安全修复程序。 To work easily with git then, you need to setup the whole public key authentication with "pageant" running in the background. 为了轻松使用git,您需要使用在后台运行的“ pageant”设置整个公钥身份验证。 Putty does a bad job configuring it to convenient levels, you have to manually add it to autostart. Putty将其配置为方便级别时做得不好,您必须手动将其添加到自动启动。 Or you could either use KeePass with the KeeAgent plugin to get the same (I prefer it a lot: All authentication stuff in one location). 或者,您也可以将KeePass与KeeAgent插件结合使用来获取相同的证书(我非常喜欢:所有身份验证都集中在一个位置)。

Executing composer is a question of having installed PHP >= 5.3. 执行作曲家是安装PHP> = 5.3的问题。 If PHP is installed, you execute the alternative install command (without curl) and are nearly ready to go. 如果安装了PHP,则执行替代安装命令(不使用curl),几乎可以使用了。 Having PHP and the composer.phar in the path or add their location to the path eases things a lot. 在路径中包含PHP和composer.phar或在路径中添加其位置会大大简化工作。

Caveat: I have no experience with Windows 8 so far, things might be different there. 警告:到目前为止,我还没有使用Windows 8的经验,那里的情况可能有所不同。 My suggestions are supposed to work on Win 7 at least. 我的建议至少应该适用于Win 7。

The biggest drawback of Windows is that there is no decent shell support I'd like. Windows的最大缺点是我没有想要的外壳支持。 Having a virtual machine still is a good idea, but you need your development tools within Windows as well. 拥有虚拟机仍然是一个好主意,但是您也需要Windows中的开发工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM