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 in Git & GitHub by akhtar
• 38,170 points
3,183 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 by MD
• 95,160 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 13, 2018 in Git & GitHub by Sophie may
• 10,550 points
190 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,160 points
81 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 in Git & GitHub by MD
• 95,160 points
72 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,063 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,160 points
212 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,160 points
484 views