防止使用git-svn将本地.gitignore推送到svn repo [英] Preventing local .gitignore from being pushed to svn repo with git-svn

查看:83
本文介绍了防止使用git-svn将本地.gitignore推送到svn repo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用git-svn在本地使用git并部署客户端的svn回购。但是,在将svn ignore项迁移到.gitignore之后,我必须将这些项提交到git。



但是我不希望每次执行 git svn dcommit



任何建议?

解决方案

代替。请参阅最后一节:

http:/ /help.github.com/ignore-files/


I'm using git-svn to use git locally and deploy a client's svn repo. However, after migrating the svn ignore entries to the .gitignore, I have to commit those to git.

But I don't want that file being pushed as a commit to the svn repo everytime I do a git svn dcommit

Any advice?

解决方案

you can use git exclude instead. See the last section here:

http://help.github.com/ignore-files/

这篇关于防止使用git-svn将本地.gitignore推送到svn repo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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