Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit

Permalink
Add some git helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed May 17, 2024
1 parent 8c7505f commit 1368b91
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# Setup shell with:
# . ./env.sh

export SSH_AUTH_SOCK=/run/lock/agent.$USER
if [ ! -S $SSH_AUTH_SOCK ] ; then
eval `ssh-agent -a $SSH_AUTH_SOCK` | grep -v "^Agent pid"
ssh-add ~/work/.ssh/id_rsa
fi
13 changes: 13 additions & 0 deletions prep/Setup.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ editor_options:
---
```

## Git

Setup Git

```{bash}
git config color.ui auto
git config pull.ff only
git config push.default simple
#git config user.name "First Last"
#git config user.email "first_last@example.edu"
```

Notes:

* R Notebooks seem fragile and Caching output seems dangerous. Use "Chunk Output Inline" for a more Notebook experence or use Juypter!
Expand Down
10 changes: 10 additions & 0 deletions prep/Setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,15 @@ <h1>Setup</h1>
editor_options:
chunk_output_type: console
---</code></pre>
<div id="git" class="section level2">
<h2>Git</h2>
<p>Setup Git</p>
<pre class="bash"><code>git config color.ui auto
git config pull.ff only
git config push.default simple

#git config user.name &quot;First Last&quot;
#git config user.email &quot;first_last@example.edu&quot;</code></pre>
<p>Notes:</p>
<ul>
<li>R Notebooks seem fragile and Caching output seems dangerous. Use
Expand All @@ -381,6 +390,7 @@ <h1>Setup</h1>
cursor) for development.</li>
</ul>
</div>
</div>
<div id="test" class="section level1">
<h1>Test</h1>
<p>Top/bottom</p>
Expand Down

0 comments on commit 1368b91

Please sign in to comment.