git - Create a new repo with only certain versions -


मेरे पास एक मौजूदा git repo ( existingrepo ) है अब मैं एक नया git repo ( newrepo ) बनाना चाहूंगा जिसमें केवल कुछ निश्चित टैग / रिलीज़ संस्करण शामिल होंगे I

उदाहरण के लिए,

  विद्यमानवर्पो v0.1 मौजूदा प्रपो v0.2 मौजूदा प्रपो v1.0 मौजूदा मौजूदा v1.1 मौजूदा प्रपो v1.2 मौजूदा प्रपो v1.3 मौजूदा संरक्षित v2.0 newrepo v1 .0 newrepo v2.0  

जीआईटी में इसे प्राप्त करने का सुझाव क्या है?

मैं इस दृष्टिकोण को लेता हूं, जिसमें वे सभी संस्करण मानते हैं जिनके बारे में आप दिलचस्पी रखते हैं, वे टैग्स से जुड़े हैं:

  $ v ($ lt_of_versions.txt) में सी के लिए currentrepo जीआईटी संग्रह --format = tar "refs / tags / $ {v}" | (Cd newrepo; git rm -rf *; tar xpf -) (cd newrepo; git add -a; git commit -m "संस्करण $ {v} का आयात"; git टैग "$ {v}")  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -