Automate username/password entry when git pushing over http from windows machine

I am pushing from my windows box to a repository cloned from an http (not ssh) address. Each push, I have to enter my u/p. I want to automate this process. I have tried the following:

$ git config credential.helper cache
$ git config credential.helper 'cache timeout=360000'

But those settings had no effect and I still have to enter the u/p each time. Is there any way to automate it?

  • How to set --work-tree or --git-dir in smartgit?
  • Is there any way to incrementally build commit messages in git?
  • How do I merge git repositories with related branches
  • why magit said ' Git is already running' when i am trying to do a commit
  • Get the Git Working Branch in Gradle on Jenkins
  • How to use Git as content distribution network
  • Resolving Git conflicts in SourceTree
  • List Git commits not pushed to the origin yet
  • Git: reset/revert a whole branch to another branches state?
  • What are the differences between 'revert', 'amend,' 'rollback', and 'undo' a commit?
  • How best to squash old commits
  • Git LFS skipped files
  • 2 Solutions collect form web for “Automate username/password entry when git pushing over http from windows machine”

    Use _netrc file to store your username/password for remote machine, described here

    Newer versions of Git support a more streamlined credentials API. Depending on implementation of the credentials helper, this is typically more convenient and secure than using .netrc.

    A popular windows credentials helper is git-credential-winstore.exe. Simply download to the git/bin path and execute. Github supplies a similar helper.

    Additional detail here (but not specific to Windows):

    • Is there a way to skip password typing when using https:// on GitHub?
    Git Baby is a git and github fan, let's start git clone.