この問題に関して、git docs は非常にわかりにくいと思います。簡単なことをしたいのですが、それを行うのは簡単ではないようです。
次のような状況があります。
$ git remote -v
origin git://192.168.0.49/mnt/repos
stick /mnt/titanium/podaci/repos
git pullを使用して、オリジンからフェッチおよびマージできます。これは正常に機能します。
$ git pull
Already up-to-date.
次のようにスティックから引っ張ることができます。
$ git pull stick master
Already up-to-date.
ただし、マスターパーツなしでスティックからプルすると、次のメッセージが表示されます。
$ git pull stick
From /mnt/titanium/podaci/repos
* [new branch] su2009 -> stick/su2009
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.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.master.remote = <nickname>
branch.master.merge = <remote-ref>
remote.<nickname>.url = <url>
remote.<nickname>.fetch = <refspec>
See git-config(1) for details.
ここでいくつかのことが私を混乱させます。ここで「構成ファイル」とはどういう意味ですか? どのファイルを編集する必要があり、正確には何を入力すればよいですか? この場合のニックネームは?
私が達成しようとしていることは非常に一般的だと思いますが、例を挙げて簡単な答えを見つけることができませんでした。