Remove credentials from Git

0 votes

Hi Guys,

I'm working with several repositories in Git. Today I am trying to commit and push code into another one. But it is showing me the error.

$ git push appharbor master
error: The requested URL returned error: 403 while accessing https://xxxxxxxx/info/refs?service=git-receive-pack
fatal: HTTP request failed
Jan 4, 2021 in Git & GitHub by akhtar
• 38,260 points
52,785 views

1 answer to this question.

0 votes

Hi@akhtar,

The Git credential cache runs a daemon process that caches your credentials in memory and hands them out on demand. So killing your git-credential-cache--daemon process throws all these away and results in re-promoting you for your password if you continue to use this as the cache.helper option.

You could also disable the use of the Git credential cache using git config --global --unset credential.helper. Then reset this, and you would continue to have the cached credentials available for other repositories (if any). You may also need to do git config --system --unset credential.helper if this has been set in the system configuration file.

answered Jan 4, 2021 by MD
• 95,460 points

Related Questions In Git & GitHub

0 votes
1 answer

Is there a way to remove a directory from git repository?

This is simple, just follow the commands ...READ MORE

answered Jul 14, 2018 in Git & GitHub by Sophie may
• 10,620 points
1,234 views
0 votes
1 answer

How to remove files from git repository as well as users system?

Hi@akhtar, The git rm command deletes the file ...READ MORE

answered Nov 19, 2020 in Git & GitHub by MD
• 95,460 points
783 views
0 votes
1 answer

How to remove version tracking from a project cloned from git?

Hi@akhtar, All the data Git uses for information ...READ MORE

answered Jan 4, 2021 in Git & GitHub by MD
• 95,460 points
1,035 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
+1 vote
1 answer

How to remove untracked files from the current Git working tree?

Hi@akhtar, If you have thousands of file then ...READ MORE

answered Sep 4, 2020 in Git & GitHub by MD
• 95,460 points
1,236 views
0 votes
1 answer

How to remove remote origin from Git repo?

Hi@akhtar, You can remove or add a new ...READ MORE

answered Sep 4, 2020 in Git & GitHub by MD
• 95,460 points
7,058 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP