The GitHub Annoying Token Issue

Shaon Majumder
2 min readNov 11, 2021

--

# Solution of The annoying GitHub Repository Token authentication Issue

Most of you faced a great hassle and cost a lot of your development time for manually entering your credentials again and again. But I don’t want you to waste your valuable time again, so I found my fix to solve the problem at least for me. So, I am sharing the joy with you. Let’s start.

1. First push to the repository with username and token

/> git push origin <branch-name>

2. To cache for once

/> git config credential.helper cache
To store -
/> git config credential.helper store

3. then push again

no password will be asked

— — — — — — — done — — — — —

2.1 If you accidentally changed global authentication

and want to remove the authentication cache.
For global -
/> git config — global — unset credential.helper
For local -
/> git config — local — unset credential.helper

3.1 Then push again with username and token.

3.2 Then cache / store

Manual fix

When you cache or store, the git config file changes. So you can manually ,

change the git config

/> git config — edit

Then add,

for storing

[credential]
helper = store

or,

Add for caching

[credential]
helper = cache

then save and exit.

I hope one of the solution worked for you. If it is then , leave some appreciation on comment box and share to your social handles.

--

--

Shaon Majumder
Shaon Majumder

Written by Shaon Majumder

Software Engineer | Author | Data Scientist

No responses yet