共享文件夹,包括WinXP和Mac OS X之间的Git的Eclipse工作区 [英] Share folder including Eclipse workspace with Git between WinXP and Mac OS X

查看:102
本文介绍了共享文件夹,包括WinXP和Mac OS X之间的Git的Eclipse工作区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个我的这个通用项目文件夹,其中包括各种各样的东西:文本,图像,二进制文件等。我想要保持这个项目在git下的版本控制,所以如果我搞砸了一些东西,我可以恢复所有文件的先前版本。



此项目中的一件事是Eclipse IDE Java工作区,其中包含所有内容。我的问题是,我如何共享这个一般项目,包括我的Mac OS X和WinXP计算机之间的Eclipse工作区,以便推送和拉动将尽可能顺利?



现在,每当我从eg OSX到远程存储库,并从那里拉到我的XP机器,类路径和东西再次出错,我需要放下很多的工作来排序。

解决方案

我设置机器忽略任何操作系统的具体信息



这可以通过将名为.gitignore的文件放入



in .gitignore

  / path / not / to / share / * 


I have this general project folder of mine which includes a variety of stuff: text, images, binary files etc. I want and need to keep this project in version control under git, so if I mess up something I can revert to a previous version of all files.

One thing inside this project is an Eclipse IDE Java workspace with all it's contents.

My questions is, how can I share this general project including the Eclipse workspace between my Mac OS X and WinXP computers so that pushes and pulls would go as smoothly as possible?

As it is now, whenever I push from e.g. OSX to remote repository and pull from there to my XP machine, the classpaths and stuff goes all wrong again and I need to put down quite an effort to sort things up.

解决方案

I'd set up the machines to ignore any OS specific information

this can be acomplished with putting a file named .gitignore in the root of the working directory of the repository.

in .gitignore

/path/not/to/share/*

这篇关于共享文件夹,包括WinXP和Mac OS X之间的Git的Eclipse工作区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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