Is there a way to make git remember the password for WebDAV remotes?

前端 未结 3 1284
长情又很酷
长情又很酷 2020-12-12 21:31

I\'m working with Git pushing changes to a repository shared over HTTP / WebDAV, and Git prompts for a password for every operation that accesses the HTTP remote. Is there a

3条回答
  •  既然无缘
    2020-12-12 22:13

    Run this command inside your repo:

    git config credential.helper store
    

    Then push to the server once:

    git push
    

    The credentials you use to push to the server will get saved in ~/.git-credentials.

    Instructions taken from this guide here.

提交回复
热议问题