Showing only posts tagged git. Show all posts.

Gitting git not to be a pain

Are you tired of git always pestering you about your password in one of your 100 repositories cloned into your system? Even worse, do you have multiple git accounts and it's just absolutely maddening?

No longer do you have to search for "git permanently store password" or "git credential helper cache infinite timeout"!

There's a solution to this maddening behaviour, just edit your .git/config and your troubles are over, no more stupid behaviour

                  name = Username
                  email = Email
                  password = Password
                  helper = cache

And git just becomes usable.

P.S: You might get:

$ git fetch
          remote: Repository not found.
          fatal: repository '' not found

Just delete ~/.git-credentials, git can't handle storing passwords for multiple accounts properly :')



Posted by TaaviE on in Linux. updated Tags: git.