Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The way is to use ~/.netrc as outlined in step 3 of <a href="http://schacon.github.com/git/howto/setup-git-server-over-http.txt" rel="nofollow noreferrer">this Git documentation</a>:</p> <blockquote> <p>Then, add the following to your $HOME/.netrc (you can do without, but will be asked to input your password a <em>lot</em> of times):</p> <pre><code>machine &lt;servername&gt; login &lt;username&gt; password &lt;password&gt; </code></pre> <p>...and set permissions:</p> <pre><code>chmod 600 ~/.netrc </code></pre> </blockquote> <h3>UPDATE:</h3> <p>As of git 1.7.9, it seems the way to go would be the native credential helper API. Git comes with a plaintext <a href="http://git-scm.com/docs/git-credential-store" rel="nofollow noreferrer">credential store</a> or a less convenient but more secure temporary <a href="http://git-scm.com/docs/git-credential-cache" rel="nofollow noreferrer">credential cache</a>. It's also possible to use third-party credential helpers. So far I'm aware of <a href="http://gitcredentialstore.codeplex.com/" rel="nofollow noreferrer">a helper for the native Windows Credential Store</a>, and <a href="https://github.com/git/git/blob/master/contrib/credential/osxkeychain/git-credential-osxkeychain.c" rel="nofollow noreferrer">one that integrates with the OS X keychain</a>. (The Git build shipped by Homebrew has a binary for it, as might other OS X Git distributions. Github also provides a <a href="http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain" rel="nofollow noreferrer">standalone binary</a>.)</p> <p>Generally, it should be sufficient to set up the a credential helper once:</p> <pre><code>git config --global credential.helper wincred </code></pre> <p>Or instead of <code>wincred</code>, use whichever helper is appropriate for your platform. (If the name of the helper executable is <code>git-credential-wincred</code>, the value you set the option to will be <code>wincred</code>, etc.)</p> <p>The credential helpers also support the need to have separate sets of credentials for different repositories on the same host.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload