예를 들어 설명하는 것이 가장 좋습니다. 나는 저장소의 0.58 지점에 있으며 이것이 내가 어떻게 당기는 지입니다.
git pull origin 0.58
"git pull"을 호출하면 다음과 같이 표시됩니다.
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 / heads / 0.58"을 지정해야합니까?
정확히 차이점은 무엇입니까?
heads에 "S"로.