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

Commit

Permalink
Persistant global git configuration for PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed May 30, 2024
1 parent 041e62d commit a1c7df4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ RStudio keyboard shortcuts:

Git Configuration:

Configure username, email address, and enable password saving for your new project. Run in terminal once after the project has been created. Note the use of double quotes.
For password based projects, configure username, email address, and enable password saving for your new project. Run in terminal once after the project has been created. Note the use of double quotes.

```bash
git config credential.helper cache
Expand All @@ -174,6 +174,18 @@ git config --local --list
```
*Please note we do not use `--global` since no global settings are saved in this Environment.

For personal access token projects, configure a persistent git configuration. Use this code in a Bash script or Bash notebook and run once after staring a new environment. Note the use of double quotes.
```bash
#!/bin/bash
ln -sfv ~/work/.gitconfig ~/
ln -sfv ~/work/.git-credentials ~/

git config --global credential.helper store
git config --global user.name "First Last"
git config --global user.email "first_last@skc.edu"
git config --global --list
```

Git Status:

Check the status of your project with the remote repository. In a terminal run:
Expand Down

0 comments on commit a1c7df4

Please sign in to comment.