title: Git adding to a parent branch
body: <p>I have a remote git respository with A and B branches. A is the parent of B. They are both empty at the moment.</p>
  
  <p>I need to get the same code into A &amp; B, without merging them. Without realizing which branch I was on, I did a git commit in branch B. When I checkout branch A and try to do the add/commit there, I get a "nothing to commit (working directory clean)" message. How can I get the files committed in this branch?</p>
  
  <p>Yes, I realize this is a strange way of doing things. I'm not looking for commentary on the way the repository is organized. </p>