title: Is it necessary for dev branch and main branch up to date?
body: <p>I am confused about some concepts in Git.</p>
  <p>I try to use GitHub for my codes.</p>
  <p>I have a branch <code>main</code> and I treat it as my deployable branch.</p>
  <p>Then, I create a <code>dev</code> branch from the <code>main</code> branch for my development.</p>
  <p>My workflow is whenever there are new changes, I will add to <code>dev</code> and test it.</p>
  <p>If everything is alright, I will merge it to 'main' for deployment.</p>
  <p>So, I add some changes to <code>dev</code> and make a <code>pull request</code> merging it to <code>main</code>.</p>
  <p>However, I notice the <code>dev</code> branch is 1 commit behind <code>main</code> after merging. I can see <code>main</code> contains one extra commit from the <code>merge pull request</code>.</p>
  <p>My Questions:</p>
  <p>Should I make <code>dev</code> branch always up to date regarding to <code>main</code> and why?
  If so, how can I do it?</p>