Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A command to stop using the credentials and possibly also clean them up #37

Open
consideRatio opened this issue Oct 7, 2022 · 0 comments

Comments

@consideRatio
Copy link
Member

Facu with JMTE wrote this.

Does anyone knows how to deactivate the Github authentication app once it has been activated? I am trying to push to a repository that doesn’t have the app installed and of which I am not owner . I can just wait 8 hours and push with my GH token, but I would like to know if there is another way of doing this. Thank you!

I concluded he could remove a section from his .gitconfig looking like this accomplish that.

[credential "https://github.com/"]
	helper = store --file=/tmp/tmp3z__u6za

That configuration was added by this section.

# Tell git to use our new creds when talking to github
subprocess.check_call(
[
"git",
"config",
"--global", # Modifies ~/.gitconfig
"credential.https://github.com.helper",
f"store --file={f.name}",
]
)

Maybe it can make sense to have a command to clean that configuration change and the associated credentials?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant