title: How to configure git to avoid accidental git push
body: <p>After git clone, the config in the new repo looks like:</p>
  
  <pre><code>remote.origin.url=&lt;some url&gt;
  remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
  branch.master.remote=origin
  branch.master.merge=refs/heads/master
  </code></pre>
  
  <p>Then, I can execute "git pull" and "git push". But I'm interested in only do "git pull", because I want to push into another repo.</p>
  
  <p>One thing I can do is:</p>
  
  <pre><code>git add remote repo-for-push &lt;some other url&gt;
  git push repo-for-push master
  </code></pre>
  
  <p>But I would like to configure git to use default and distinct repositories for pull and push, i.e:</p>
  
  <pre><code>git pull # pulls from origin
  git push # pushes into repo-for-push, avoiding accidental push into the origin
  </code></pre>
  
  <p>How can this be configured?
  Thanks in advance.</p>
  
  <p>EDIT:<br>
  Basically, I want to setup the default push repo to be different from the default fetch/pull repo.</p>