बेस्ट एक उदाहरण से समझाया जा करने के लिए बीच का अंतर: मैं भंडार की शाखा 0.58 पर हूँ और यह उसकी मैं कैसे खींच:Git: "BRANCHNAME" और "refs/सिर/BRANCHNAME"
git pull origin 0.58
जब मैं बस कॉल "Git पुल", मैं:
ip238:openlierox az$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.0.58.merge' in
your configuration file does not tell me either. Please
name which branch you want to merge on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details on the refspec.
If you often merge with the same branch, you may want to
configure the following variables in your configuration
file:
branch.0.58.remote = <nickname>
branch.0.58.merge = <remote-ref>
remote.<nickname>.url = <url>
remote.<nickname>.fetch = <refspec>
See git-config(1) for details.
लगता है मैं शायद कुछ विकल्प भूल गया (--track?) जब मैं उस शाखा की जाँच की। वैसे भी, मैंने इसे अभी सेट किया है:
git config branch.0.58.merge 0.58
git config branch.0.58.remote origin
और ऐसा लगता है।
ip238:openlierox az$ git config branch.0.57.merge
refs/heads/0.57
ip238:openlierox az$ git config branch.0.57.remote
origin
मैं अब सोच रहा था, वहाँ "0.58" बीच एक अंतर है या मैं निर्दिष्ट करना चाहिए "refs/सिर/0.58": फिर, बस रुचि की वजह से, मैं इन सेटिंग के बारे में कुछ अन्य शाखा पर एक दृष्टि डाली ?
वास्तव में क्या अंतर है?
बहुत बहुत धन्यवाद, यह बहुत अच्छी तरह से बताता है। यह सिर्फ सरल "0.58" के साथ काम करता है क्योंकि ऐसा कोई नाम टैग नहीं है। – Albert
ठीक है, यह अनिवार्य रूप से हमेशा पूरी तरह से ठीक होगा, लेकिन यह सुरक्षित होना अच्छा है। – Cascabel