1 $ git pull 2 Password: 3 You asked me to pull without telling me which branch you 4 want to merge with, and 'branch.master.merge' in 5 your configuration file does not tell me, either. Please 6 specify which branch you want to use on the command line and 7 try again (e.g. 'git pull <repository> <refspec>'). 8 See git-pull(1) for details. 910 If you often merge with the same branch, you may want to11 use something like the following in your configuration file:1213 [branch "master"]14 remote = <nickname>15 merge = <remote-ref>1617 [remote "<nickname>"]18 url = <url>19 fetch = <refspec>2021 See git-config(1) for details.
在参考[2]中,有这样一段:
Note: at this point your repository is not setup to merge _from_ the remote branch when you type 'git pull'. You can either freshly 'clone' the repository (see "Developer checkout" below), or configure your current repository this way: