2012-09-27 12 views
14

मैं जानता हूँ कि मैं निम्न कमांड का प्रयोग तोड़फोड़ को अनदेखा कर के लिए फ़ोल्डर और फ़ाइलें कॉन्फ़िगर कर सकते हैं:git svn के साथ svn ignore सेटिंग्स को कॉन्फ़िगर कैसे करें?

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

हालांकि, मैं git svn का प्रयोग कर एक तोड़फोड़ सर्वर पर संग्रहीत भंडार चेकआउट करने के लिए। मुझे कॉन्फ़िगरेशन करने के लिए कोई आदेश नहीं मिला। निम्न सूची सभी आदेशों 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 के माध्यम से विन्यास की अनदेखी है पता है?

उत्तर

9

नहीं है, Git-SVN SVN द्वारा .gitignore का ही निर्माण का समर्थन करता है: ध्यान न दें। SVN सेट करने के लिए: उपेक्षा आप

  1. उपयोग svn propset svn:ignore 'value' URL जहां यूआरएल द्वारा (git-svn git svn info path/to/directory | awk '/URL:/{print $2}') प्राप्त किया जा सकता तो आप अपने खुद के 'svn_propset.sh' स्क्रिप्ट लिख सकते हैं हो सकता है। अनुवाद पर ध्यान न दें: -: SVN के साथ अपने .gitignore सिंक करने के लिए> SVN git svn create-ignore

  2. उपकरण है कि .gitignore < अनुमति देते हैं के किसी भी उपयोग चलाने ignore। मुझे केवल दो पता है: SmartGit (क्लाइंट साइड, नोट: आपको अनदेखा करने के लिए एक नया क्लोन चाहिए) और SubGit (सर्वर पक्ष, आपको एसवीएन के साथ सर्वर तक पहुंच की आवश्यकता है)। इस मामले में svn: अनदेखा एसवीएन (स्मार्टगिट के लिए)/गिट (सबगिट के लिए) भंडार में अपनी स्थानीय प्रतिबद्धता को धक्का देने पर सेट है।

संबंधित मुद्दे