Wednesday, October 24, 2018

Change the GitHub account and use Git on a a foreign Windows 10 computer

1. Remove the GitHub credentials from Control Panel






 2. Start Git Bash and change the global settings







3. Make sure the user.name and user.email are correct
4. clone the repo git clone <github URL>
5. Work and when you are done do "git add ."
6. git commit -m "Reason"
7. git push origin master
8. Enter the username and password

Don't forget to delete the credentials and the folder when you are finished.