title: Get changes from one branch into another one in git and how can I work on my own branch
body: <p>I'm a little lost with git, It's the first I use git with other people.</p>
  
  <p>What I want to do is bring the changes that were made in a branch to the branch in which I am working, let's say that when I execute <code>git branch --all</code> what I see is this:</p>
  
  <pre><code>  master
  * c
    remotes/origin/HEAD -&gt; origin/master
    remotes/origin/a
    remotes/origin/master
    remotes/origin/c
  </code></pre>
  
  <p>So, I'm working on the branch c, and I have a friend who made ​​some changes in the branch a, how can I bring his changes to my branch?</p>
  
  <p>The other thing I do not quite understand is how I can work on my own branch, let's suppose I fixed something in the file blah.html.erb, and I want to do a commit and upload it to my own branch, would it be ok to do the following?</p>
  
  <pre><code>git remote add blah.html.erb origin/c
  git commit -m "Some changes"
  git push origin origin/c
  </code></pre>
  
  <p>Greetings.</p>