如何用git-svn处理IDE项目文件 [英] How to handle IDE project files with git-svn
问题描述
我正在使用git-svn,并且svn存储库中有IDE项目文件。每次启动IDE时,它都会修改项目文件并在状态显示中将其标记为已更改。然后,如果我尝试执行git svn rebase更新我的工作树以从svn中获取最新更改,它将失败,因为我对项目文件进行了本地修改,并且必须存储更改。我该如何缓解我的工作流程,这样我就不必每次都没有真正修改任何东西时隐藏/隐藏应用程序?
创建一个简单的git别名,它可以做你想做的事(未经测试):
$ $ $ $ $ code code code code code code code code $ c $ s $'
I'm using git-svn and there are IDE project files in the svn repository. Everytime I start my IDE it modifies project files a bit and they are marked as changed in the status display. And then if I try to do a git svn rebase to update my working tree to have the latest changes from the svn it fails as I have local modifications on the project files and I have to stash the changes. How can I ease my workflow so I wouldn't have to stash/stash apply everytime I haven't really modified anything?
Create a simple git alias which does what you want (untested):
[alias]
safe-svn-rebase = "git stash 'preparing to rebase'; git svn rebase; git stash pop"
这篇关于如何用git-svn处理IDE项目文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!