[英]How to configure svn ignore settings with git svn?
我知道我可以使用以下命令配置文件夾和文件以便被subversion忽略:
svn propset svn:ignore build . // Ignores the build folder.
svn propedit svn:ignore . // Opens an editor.
雖然,我使用git svn
來檢查存儲在subversion服務器上的存儲庫。 我找不到以這種方式進行配置的命令。 以下列表顯示了git svn
zsh
完成建議的所有命令:
$ 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 ignore配置? 不,git-svn僅支持通過svn:ignore創建.gitignore。 設置svn:忽略你可能
使用svn propset svn:ignore 'value' URL
,其中URL可以通過( git-svn git svn info path/to/directory | awk '/URL:/{print $2}'
)所以你可以編寫自己的'svn_propset。 sh'腳本。 要將.gitignore與svn同步:ignore run git svn create-ignore
使用允許.gitignore < - > svn:忽略翻譯的任何工具。 我只知道兩個: SmartGit (客戶端,注意:你需要一個新的克隆來忽略支持)和SubGit (服務器端,你需要訪問帶有SVN的服務器)。 在這種情況下,svn:ignore是在將本地提交推送到SVN(對於SmartGit)/ Git(對於SubGit)存儲庫時設置的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.