2012-09-27 25 views
14

Ben aşağıdaki komutları kullanarak tahrip tarafından göz ardı ediliyor için klasör ve dosyaları yapılandırabilirsiniz biliyorum:svn ignore ayarlarını git svn ile nasıl yapılandırabilirim?

svn propset svn:ignore build . // Ignores the build folder. 
svn propedit svn:ignore . // Opens an editor. 

olsa, bir yıkılma sunucusunda depolanan bir depo çıkış için git svn kullanın. Yapılandırmayı bu şekilde yapmak için bir komut bulamadım. Aşağıdaki liste git svn için zsh tamamlanması önerdiği tüm komutları gösterir:

$ 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 

Soru: yıkılma git svn aracılığıyla yapılandırmayı görmezden düzenlemek için herhangi bir yolu varsa

  • biliyor musunuz?

cevap

9

Hayır, git-svn yalnızca svn: ignore tarafından .gitignore'un oluşturulmasını destekler. svn ayarlamak için: görmezden sen may

  1. URL (git-svn git svn info path/to/directory | awk '/URL:/{print $2}') elde edilebilir Yani kendi 'svn_propset.sh' senaryo yazmaya olabilir kullanın svn propset svn:ignore 'value' URL. Çeviri görmezden: -: svn ile .gitignore senkronize etmek için> svn

  2. Kullanım .gitignore < izin araçlarından birini git svn create-ignore çalıştırmak görmezden. Sadece iki tane biliyorum: SmartGit (istemci tarafı, not: desteği görmezden gelmek için yeni bir klona ihtiyacınız var) ve SubGit (sunucu tarafı, SVN ile sunucuya erişmeniz gerekir). Bu durumda svn: yerel işleminizi SVN'ye (SmartGit için)/Git'e (SubGit) depolamaya zorlayarak yoksayılır.