Skip to content

Instantly share code, notes, and snippets.

@richchurcher
Last active May 10, 2024 14:03
Show Gist options
  • Star 61 You must be signed in to star a gist
  • Fork 27 You must be signed in to fork a gist
  • Save richchurcher/531b0452d7d5ea983daa314d0876f60a to your computer and use it in GitHub Desktop.
Save richchurcher/531b0452d7d5ea983daa314d0876f60a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Logout current GitHub credentials and remove global user.name, user.email
echo -e "host=github.com\nprotocol=https\n" | git credential-osxkeychain erase
git config --unset-all --global user.name
git config --unset-all --global user.email
@pSnehanshu
Copy link

git: 'credential-osxkeychain' is not a git command. See 'git --help'.

@NichuNaizam
Copy link

@dorigom06
Copy link

I love you so much.

@aditrades
Copy link

THanks!

@whitis01
Copy link

Thank you!

@rwaddin
Copy link

rwaddin commented Apr 6, 2021

git: 'credential-osxkeychain' is not a git command. See 'git --help'.

same

@honne23
Copy link

honne23 commented Aug 15, 2021

thank you

@Trishulks23
Copy link

@pSnehanshu @rwaddin
If you are on linux, change line 4 to
echo -e "host=github.com\nprotocol=https\n" | git credential-manager-core erase

@kamal614
Copy link

Thank you, that was really helpful

@Gopivenka
Copy link

Log out

@Gopivenka
Copy link

Ligout

@Maddyta
Copy link

Maddyta commented Dec 15, 2023

thank you : )

@karthik-kunjarakana
Copy link

Thanks!

@goalTosin
Copy link

goalTosin commented Apr 11, 2024

It didn't work on my windows 10

@savvy-abhishek-s
Copy link

This command is for OsX / Mac, @Trishulks23 has writtern command for linux
Anyway thanks a lot

@protapbarman02
Copy link

windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment