Skip to content

Instantly share code, notes, and snippets.

@learnit-codeit
Created April 26, 2021 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save learnit-codeit/d2049bc2adc9d516df0cb06685c7db38 to your computer and use it in GitHub Desktop.
Save learnit-codeit/d2049bc2adc9d516df0cb06685c7db38 to your computer and use it in GitHub Desktop.
$ git push origin test
$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.test.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.
If you often merge with the same branch, you may want to
use something like the following in your configuration file:
[branch "test"]
remote = <nickname>
merge = <remote-ref>
[remote "<nickname>"]
url = <url>
fetch = <refspec>
See git-config(1) for details.
===============================
$ git push -u origin test
Branch test set up to track remote branch test from origin.
Everything up-to-date
$ git pull
Already up-to-date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment