简体   繁体   English

使用git-svn时,是否有一种方法可以使'git svn dcommit'忽略提交到其远程的提交?

[英]When using git-svn, is there a way to make a commit that 'git svn dcommit' will ignore pushing to its remote?

我想知道是否有一种方法告诉git-svn忽略历史记录中的提交,并且永远不要将其推送到远程服务器。

Turns out I could do what I needed by properly configuring my .gitignore file. 事实证明,可以通过正确配置.gitignore文件来完成所需的工作。 After more searching, I couldn't find a way to keep specific commits from pushing to the server. 经过更多搜索之后,我无法找到一种方法来阻止特定提交提交到服务器。 And in retrospect, even if you could I can't think of a use case that wouldn't turn your local repository history into spaghetti eventually. 回想起来,即使您无法想到一个用例,最终也不会使您的本地存储库历史变成意大利面条。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM