title: How do I fix about git push rejected error?
body: <pre><code>╭─ksoo@ksoo-compnay ~/hisdk/mpp  ‹devel*› 
  ╰─$ git push origin devel                                                                                                                                                 1 ↵
  Everything up-to-date
  ╭─ksoo@ksoo-compnay ~/hisdk/mpp  ‹devel*› 
  ╰─$ git status 
  On branch devel
  Your branch is up-to-date with 'origin/devel'.
  Untracked files:
    (use "git add &lt;file&gt;..." to include in what will be committed)
  
      include/cscope
      include/cscope.files
      sample/cscope.out
  
  nothing added to commit but untracked files present (use "git add" to track)
  ╭─ksoo@ksoo-compnay ~/hisdk/mpp  ‹devel*› 
  ╰─$ git checkout devel 
  Already on 'devel'
  Your branch is up-to-date with 'origin/devel'.
  ╭─ksoo@ksoo-compnay ~/hisdk/mpp  ‹devel*› 
  ╰─$ git push
  To git@github.com:varram-suh/mpp.git
   ! [rejected]        master -&gt; master (non-fast-forward)
  error: failed to push some refs to 'git@github.com:xxxx/xxxx.git'
  hint: Updates were rejected because a pushed branch tip is behind its remote
  hint: counterpart. Check out this branch and integrate the remote changes
  hint: (e.g. 'git pull ...') before pushing again.
  hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  ╭─ksoo@ksoo-compnay ~/hisdk/mpp  ‹devel*› 
  ╰─$ git pull                                                                                                                                                              1 ↵
  Current branch devel is up to date.
  ╭─ksoo@ksoo-compnay ~/hisdk/mpp  ‹devel*› 
  ╰─$ git push
  To git@github.com:varram-suh/mpp.git
   ! [rejected]        master -&gt; master (non-fast-forward)
  error: failed to push some refs to 'git@github.com:xxxx/xxx.git'
  hint: Updates were rejected because a pushed branch tip is behind its remote
  hint: counterpart. Check out this branch and integrate the remote changes
  hint: (e.g. 'git pull ...') before pushing again.
  hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  </code></pre>
  
  <p>I get an error when git push, it's probably a branch problem. If I specify a branch, I don't get an error.</p>
  
  <p>For example, when I run the commands:
      <code>git pull origin devel</code>,
      <code>git push origin devel</code></p>
  
  <p>There was no error before. How would I go about fixing this?</p>
  
  <p>Edited:
  I solved this problem using 'git config --global push.default current'</p>
  
  <p>There was no error before, why did my git config change?</p>