Skip to content

Commit 90af6ae

Browse files
committed
store git credentials when using https
1 parent d0a0515 commit 90af6ae

4 files changed

Lines changed: 23 additions & 0 deletions

File tree

docs/manual-git-rstudio.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,17 @@ <h3 id="go-to-your-repo-on-github-to-verify">Go to your repo on GitHub to verify
599599
</section>
600600
<section class="slide level2">
601601

602+
<h3 id="store-your-credentials-when-using-https">Store your credentials when using https</h3>
603+
<ol type="1">
604+
<li>Click on the <code>more</code> button in the <code>git pane</code> and select <code>shell</code></li>
605+
<li>Type <code>git config --global credential.helper manager</code></li>
606+
<li>Type <code>exit</code> to quit the shell</li>
607+
<li>The next time <code>git</code> needs your credentials, it will ask them one more time and store them</li>
608+
</ol>
609+
<p><img src="manual-git/https-credentials-rstudio1.png" alt="Store credentials" /></p>
610+
</section>
611+
<section class="slide level2">
612+
602613
<h3 id="create-logical-commits">Create logical commits</h3>
603614
<ol type="1">
604615
<li>Make 2 unrelated changes to your <code>README.md</code> locally</li>
23.6 KB
Loading

source/manual-git-rstudio.Rmd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,18 @@ _TODO Stijn: how to set username and email?_
163163

164164
![Verify your commits on GitHub](manual-git/local-commit-on-github.png)
165165

166+
---
167+
168+
### Store your credentials when using https
169+
170+
1. Click on the `more` button in the `git pane` and select `shell`
171+
1. Type `git config --global credential.helper manager`
172+
1. Type `exit` to quit the shell
173+
1. The next time `git` needs your credentials, it will ask them one more time and store them
174+
175+
![Store credentials](manual-git/https-credentials-rstudio1.png)
176+
177+
166178
---
167179

168180
### Create logical commits
23.6 KB
Loading

0 commit comments

Comments
 (0)