From 181e5c0d71583ab63c0771635e07100d3faf78f3 Mon Sep 17 00:00:00 2001 From: singlesp Date: Fri, 13 Dec 2024 16:27:09 -0500 Subject: [PATCH 1/3] change code to contents --- docs/cubic/cubic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cubic/cubic.md b/docs/cubic/cubic.md index 1a0672a..f0cf34e 100644 --- a/docs/cubic/cubic.md +++ b/docs/cubic/cubic.md @@ -246,7 +246,7 @@ The steps to do this are as follows: - Choose the repositories that are relevant for the project. - Longest expiration time allowed (366 days). - Read access to metadata. - - Read and Write access to code, commit statuses, and pull requests. + - Read and Write access to contents, commit statuses, and pull requests. 4. `git config --global credential.helper store` - This will store the PAT in ~/.git-credentials. It's plain text, but not an issue since we only have one repo. From 175a2350a697d28d0f06dffde1346a040982bffb Mon Sep 17 00:00:00 2001 From: singlesp Date: Fri, 13 Dec 2024 16:45:00 -0500 Subject: [PATCH 2/3] added git push and changed order of git config instructions --- docs/cubic/cubic.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/cubic/cubic.md b/docs/cubic/cubic.md index f0cf34e..17568db 100644 --- a/docs/cubic/cubic.md +++ b/docs/cubic/cubic.md @@ -241,20 +241,22 @@ The steps to do this are as follows: 1. `git config --global user.name ` 2. `git config --global user.email ` -3. Create fine-grained PAT on GitHub. +3. `git config --global credential.helper store` + - This will store the PAT in ~/.git-credentials. + It's plain text, but not an issue since we only have one repo. +4. `git clone https://github.com/PennLINC/affective-instability.git` + - Must be HTTPS +5. Create fine-grained PAT on GitHub. - Resource owner is PennLINC. - Choose the repositories that are relevant for the project. - Longest expiration time allowed (366 days). - Read access to metadata. - Read and Write access to contents, commit statuses, and pull requests. -4. `git config --global credential.helper store` - - This will store the PAT in ~/.git-credentials. - It's plain text, but not an issue since we only have one repo. -5. `git clone https://github.com/PennLINC/affective-instability.git` - - Must be HTTPS -6. Put in the username. -7. Put in the PAT. -8. Now you can make commits without needing to enter your credentials! + - Copy the newly generated key to your clipboard. +6. Now if you commit a change and run `git push` you will be asked to provide credentials: + - Put in the username. + - Paste the PAT. +7. Going forward, you can push commits without needing to enter your credentials! (until that PAT expires) # Interacting with CUBIC: data analysis and data transfer From ce12b28c682b99d90c04ac9ee364164b4dab6d65 Mon Sep 17 00:00:00 2001 From: Parker Singleton Date: Fri, 13 Dec 2024 17:13:45 -0500 Subject: [PATCH 3/3] generalize Co-authored-by: Taylor Salo --- docs/cubic/cubic.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/cubic/cubic.md b/docs/cubic/cubic.md index 17568db..261863e 100644 --- a/docs/cubic/cubic.md +++ b/docs/cubic/cubic.md @@ -244,7 +244,8 @@ The steps to do this are as follows: 3. `git config --global credential.helper store` - This will store the PAT in ~/.git-credentials. It's plain text, but not an issue since we only have one repo. -4. `git clone https://github.com/PennLINC/affective-instability.git` +4. `git clone https://github.com/PennLINC/.git code` + - This will clone the repository into a new folder named "code". - Must be HTTPS 5. Create fine-grained PAT on GitHub. - Resource owner is PennLINC.