git没有bash / cygwin [英] git without bash/cygwin

查看:225
本文介绍了git没有bash / cygwin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vista笔记本电脑上,第一次尝试git。



我安装了 msysgit版本,它在桌面上安装了一个git bash快捷方式。当我运行它,它似乎运行在一个cygwin的盒子, C:\ / c /



从Windows命令行使用git是安全的, / c / C:\ ?如果我 init 这样做会导致与git期望的修补方式的冲突。



<从bash / cygwin控制台,然后提交从Windows控制台?

解决方案

注意:请记住,git不会跟踪仓库是在 - 只是引用。换句话说,你可以干净地移动整个git目录(.git +工作树),它仍然可以正常工作。



它应该工作在两种情况下,假设你的环境变量允许您可以从Windows命令行运行git。



两个指向相同的实际目录(尽管引用不同),并使用相同的可执行文件来修改存储库。 p>

I'm on a vista laptop, trying out git for the first time.

I installed the msysgit version, and it installed a "git bash" shortcut on the desktop. When I run it, it seems to run in a cygwin kind of box, where C:\ is /c/

Is it safe to use git from the windows command line where /c/ is C:\? does that create any conflict with the way git expects the pathes to be like?

What about, if I init from the bash/cygwin console, then commit from the windows console? Does that create any trouble?

解决方案

Note: Keep in mind that git does not track where the repository is at -- just references. In other words you can cleanly move an entire git directory (.git + working tree) and it still works fine.

It should work in either case assuming your environment variables allow you to run git from the windows command line.

Both point to the same actual directories (although referenced differently), and use the same executable to modify the repository.

这篇关于git没有bash / cygwin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆