windows – git和subversion可以一起玩吗?
我最近决定采取git暴跌,我真的很喜欢使用git,即使在
Windows上也是如此.
我目前的开源项目lives on subversion,所有开发者都熟悉颠覆,所以我想把颠覆作为现在的“真相来源”. 尽管如此,我想使用git,所以我继续使用git svn创建了源on github的副本.我的??所有工作都是针对github中的源完成的,我将更改推送到github.每隔几天我也会将我的更改推送到svn和rebase. 最初的导入似乎没问题,但是现在每次我执行“git svn rebase”时我都会继续发生冲突,即使是在我的get存储库中没有更改过的文件.这导致我much pain. 例如. $git svn rebase First,rewinding head to replay your work on top of it... Applying: Added git ignore file c:/Users/sam/Desktop/MediaBrowserGit/trunk/.git/rebase-apply/patch:12: trailing whitespace. */obj/* error: .gitignore: already exists in index Using index info to reconstruct a base tree... :12: trailing whitespace. */obj/* warning: 1 line adds whitespace errors. Falling back to patching base and 3-way merge... Auto-merging .gitignore CONFLICT (add/add): Merge conflict in .gitignore Failed to merge in the changes. Patch failed at 0001 Added git ignore file When you have resolved this problem run "git rebase --continue". If you would prefer to skip this patch,instead run "git rebase --skip". To restore the original branch and stop rebasing run "git rebase --abort". rebase refs/remotes/git-svn: command returned error: 1 我的问题: >有什么方法可以告诉git使用svn作为源同步svn,所以我可以从一个干净的平板开始. (导出最新,签入更改并重置某个地方的svn refs) 有关: > http://kerneltrap.org/index.php?q=mailarchive/git/2008/4/16/1450834/thread 看起来正确的线条结尾似乎是一种黑色艺术. (我意识到这个问题可能需要扩展,请评论需要扩展的地方) 解决方法
你得到了行结束冲突吗? Git有一些配置属性,你可以设置它们来改变它处理行尾字符的方式.我有以下几套:
# this makes git NOT attempt to convert line endings on commit and checkout core.autocrlf=false # this makes git check if the conversion done by autocrlf would be reversible # this is probably not required because I do not have autocrlf turned on core.safecrlf=true 请注意,我在Windows上,我的所有同事都在Windows上,我通过git-svn与SVN连接.这些设置似乎对我有用. alt text http://www.codinghorror.com/blog/images/works-on-my-machine-starburst.png (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- windows-phone-7 – Windows Phone 7崩溃的乱七八糟的分析
- 在MS Windows下获取Android Vulkan示例
- WIX烧毁卸载?
- windows – 从Win32上的stdin读取二进制数据,并将其写入文件
- windows-server-2003 – 我的Active Directory站点是什么?
- windows-server-2008 – 您当前的安全设置不允许下载此文件
- 注册 – 如何注册Windows Phone 8?什么是Windows Phone IP
- Debian将系统时区更改为Windows等效
- Windows Powershell是否具有Try/Catch或其他错误处理机制?
- Windows – GIT日志或提交监视器
- windows – 终端服务 – 阻止用户在远程会话中使
- skype – 您的团队在远程设置中如何协同工作?
- windows-server-2008-r2 – 为什么我的Server 20
- 在Windows机器上从C#读取SMBus的简单方法?
- WinForm事件中的Object sender和EventArgs e参数
- active-directory – 使用DSMOD解锁AD用户帐户(命
- Windows批处理FOR命令选项卡分隔符
- 每当用户更改密码时,Microsoft Outlook都会询问密
- Windows下有内置的命令行工具,如wget / curl吗?
- windows – 在其他域命令行上更改用户密码