A friend and myself are sharing my computer. I\'ve made pushes to GitHub using the git bash shell on Windows 7. Now we\'re in a different project on that computer and I need
Follow the following steps:
# you can check what's currently:
git config user.name
git config user.email
git config user.name "your_github_username"
git config user.email "your_github_email"
# Again check what's currently:
git config user.name
git config user.email
git log
# once you're confirmed that it's tagged to you, then you should move to step 3
In case, the author is wrong then you can easily undo last commit without losing changes
Also, before moving to step3, don't forget to follow step one for sanity check.!
git config --local credential.helper ""
git push
# it will ask you to enter your github_username and github_password