একটি উদাহরণে ব্যাখ্যা করা ভাল: আমি সংগ্রহস্থলের 0.58 শাখায় আছি এবং এটিই আমি কীভাবে টানছি:
git pull origin 0.58
আমি যখন কেবল "গিট টান" কল করি তখন আমি পাই:
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.
আমি যখন এই শাখাটি পরীক্ষা করে দেখলাম তখন আমি সম্ভবত কিছু বিকল্প (- ট্র্যাক?) ভুলে গেছি। যাইহোক, আমি এখন এটি সেট করেছি:
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" এর মধ্যে কোনও পার্থক্য আছে বা আমি "রেফ / হেড / 0.58" উল্লেখ করব?
ঠিক পার্থক্য কী?
headsএকটি "s" এর সাথে।