首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用git svn配置svn忽略设置?

如何使用git svn配置svn忽略设置?
EN

Stack Overflow用户
提问于 2012-09-27 08:52:45
回答 1查看 5.7K关注 0票数 19

我知道我可以使用以下命令配置被subversion忽略的文件夹和文件:

代码语言:javascript
复制
svn propset svn:ignore build . // Ignores the build folder.
svn propedit svn:ignore . // Opens an editor.

不过,我使用git svn签出存储在subversion服务器上的存储库。我找不到这样做配置的命令。下面的列表显示了zsh completion为git svn建议的所有命令

代码语言:javascript
复制
$ git svn
blame           -- show what revision and author last modified each line of a file:
branch          -- create a branch in the SVN repository
clone           -- same as init, followed by fetch
commit-diff     -- commit diff of two tree-ishs
create-ignore   -- recursively finds the svn:ignore property and creates .gitignore files
dcommit         -- commit diffs from given head onto SVN repository
fetch           -- fetch revisions from the SVN remote
find-rev        -- output git commit corresponding to the given SVN revision's hash
info            -- show information about a file or directory
init            -- initialize an empty git repository with additional svn data
log             -- output SVN log-messages
propget         -- get a given SVN property for a file
proplist        -- list the SVN properties stored for a file or directory
rebase          -- fetch revs from SVN parent of HEAD and rebase current work on it
set-tree        -- commit given commit or tree to SVN repository
show-externals  -- show the subversion externals
show-ignore     -- output corresponding toplevel .gitignore file of svn:ignore
tag             -- create a tag in the SVN repository

问题:

  • 您知道是否有任何方法可以通过git svn编辑subversion忽略配置
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-09-27 10:59:45

不,git-svn只支持svn:.gitignore的创建.设置svn:忽略您可能

  1. 使用svn propset svn:ignore 'value' URL,URL可以通过(git-svn git svn info path/to/directory | awk '/URL:/{print $2}')获得,这样您就可以编写自己的“svn_propset.sh”脚本。要将.gitignore与svn同步:忽略运行git svn create-ignore
  2. 使用任何允许.gitignore <-> svn:忽略转换的工具。我只知道两个:SmartGit (客户端,注意:您需要一个新的克隆来启用忽略支持)和SubGit (服务器端,您需要使用SVN访问服务器)。在本例中,SVN:忽略设置为将本地提交到SVN(用于SmartGit)/Git(用于SubGit)存储库。
票数 13
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12617547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档