Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reset git settings

Tags:

git

When I try downloading this git repo I keep getting error: RPC failed; result=56, HTTP code = 200 and I think this is because I messed up some settings (i was playing about with --config and --bare today)

Is there a way how I can reset my git configuration to the factory settings?

If it helps I am on a Mac.

like image 974
iProgram Avatar asked Mar 08 '15 14:03

iProgram


People also ask

How do I completely reset git?

To hard reset files to HEAD on Git, use the “git reset” command with the “–hard” option and specify the HEAD. The purpose of the “git reset” command is to move the current HEAD to the commit specified (in this case, the HEAD itself, one commit before HEAD and so on).

What is git reset command?

Summary. To review, git reset is a powerful command that is used to undo local changes to the state of a Git repo. Git reset operates on "The Three Trees of Git". These trees are the Commit History ( HEAD ), the Staging Index, and the Working Directory.

How do I change my git settings?

The global git config is simply a text file, so it can be edited with whatever text editor you choose. Open, edit global git config, save and close, and the changes will take effect the next time you issue a git command. It's that easy.


1 Answers

Git settings are stored in ~/.gitconfig. Just delete that file.

like image 120
meagar Avatar answered Oct 12 '22 20:10

meagar