title: Dangling branch?
body: <p>It's probably an already asked question, but I just don't know what are the right names to call the issue - so please guide me or answer (yes, I've seen <a href="https://stackoverflow.com/questions/658885/how-do-you-get-git-to-always-pull-from-a-specific-branch" title="this">this</a> question but couldn't get too much from the answer).</p>
  
  <p>I am trying to <code>git pull</code> but receiving the following message:</p>
  
  <pre><code>You asked me to pull without telling me which branch you
  want to merge with, and 'branch.2012_05_09_my_branch.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 &lt;repository&gt; &lt;refspec&gt;').
  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 "2012_05_09_my_branch"]
      remote = &lt;nickname&gt;
      merge = &lt;remote-ref&gt;
  
      [remote "&lt;nickname&gt;"]
      url = &lt;url&gt;
      fetch = &lt;refspec&gt;
  
  See git-config(1) for details.
  </code></pre>
  
  <p>It probably looks like my working directory is kinda "hanging" without being attached to any branch, am I right? If so - please advice on how to get it connected back to the proper branch (<code>2012_05_09_my_branch</code> for example). Probably I am even wrong with that (being a total GIT newbie), in this case please explain what's happening and what can I do about it.</p>
  
  <p>Refined question: what do I need to do to run <code>git push</code> and <code>git pull</code> successfully without getting the message above?</p>
  
  <p><strong>Update:</strong> when I run <code>git branch</code> I get:</p>
  
  <pre><code>* 2012_05_09_my_branch
    master
  </code></pre>
  
  <p>Which <em>kinda</em> probably means that I am on my local <code>2012_05_09_my_branch</code> branch which is not connected to any of the remote branches?</p>
  
  <p><strong>Update N2:</strong> <a href="https://stackoverflow.com/questions/6089294/git-why-do-i-need-to-do-set-upstream-all-the-time">Why do I need to do `--set-upstream` all the time?</a> - very worth reading as a complementary material (found only now).</p>