Cannot git push using local config username
<p>I have two github account, one for work (username_work) and one personal (username_personal).
I have two repo - repo_work and repo_personal.</p>

<p>I was using repo_work till now with username_work. Now I have created repo_personal and username_personal. I want to use the username_personal with repo_personal.</p>

<p>I did following:</p>

<pre><code>git clone url_to_repo_personal.
cd repo_personal
git config --local --replace-all user.name "username_personal"
git config --local --replace-all user.email "email_username_personal_account_created_from"
</code></pre>

<p>the local git config contains correct username i.e. username_personal. 
But when I do git push origin dev, it used my office username. I have also create new SSH keys using my personal email and updated in my github profile. Any solution ??</p>