title: How to rebase and push correctly in git using terminal
body: <p>I was using VS Code git plugin for a while and now my new project is using the terminals to do the Gits and kid of new to the terminal mode.</p>
  
  <p>Here is what I did so far, please suggest...</p>
  
  <ol>
  <li>git clone <a href="http://remoteurl" rel="nofollow noreferrer">http://remoteurl</a> </li>
  <li>git branch : output name is showing a branch name like 'stagingonly' ( not showing a name like master, let it be that)</li>
  <li>git checkout -b X  : to create branch X</li>
  <li>I did all the codings in X
  : and now my team has alot new codes in the remote repo <a href="http://remoteurl" rel="nofollow noreferrer">http://remoteurl</a> , and adviced me to do rebase and push the code for code-review using terminal.</li>
  </ol>
  
  <blockquote>
    <blockquote>
      <p>Please advice the missing step to do a rebase &amp; remove conflicts and push the code ( remote repo is an azure devops repo)</p>
    </blockquote>
  </blockquote>
  
  <p>Saw alot of steps in google, but thought of not messing with the client repos.</p>