Edit svn:externals with git svn

会有一股神秘感。 提交于 2019-12-11 04:53:49

问题


Is it possible to set svn:externals property using git svn propset?

I have successfully used git svn propset to set the svn:eol property. However, for svn:externals I am unsure if/how it can be done because svn:externals is a multi-line property, and I'm not sure if/how multiple lines of the property value may be expressed on the command line.

For svn:externals, it would be ideal if the git svn propset command had an --edit option, which would allow the property to be edited in the text editor (similar to editing commit text or git config).

I'm using git version 2.11.1 on Windows.


回答1:


If you are using Git Bash, just enclose the argument in question in quotes like

git svn propset svn:externals "foo
bar" baz/bam


来源:https://stackoverflow.com/questions/42429730/edit-svnexternals-with-git-svn

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!