danesabo-laptop 2024-8-23:10:42:56

This commit is contained in:
Dane Sabo 2024-08-23 10:42:56 -04:00
parent eaa6c0c9df
commit 5d60a0391e
2 changed files with 32 additions and 2 deletions

View File

@ -77,7 +77,7 @@
}
],
"direction": "horizontal",
"width": 300
"width": 243.5
},
"right": {
"id": "2f2905a6a7d5f153",
@ -152,7 +152,8 @@
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false,
"templater-obsidian:Templater": false
"templater-obsidian:Templater": false,
"github-sync:Sync with Remote": false
}
},
"active": "c07c8c770459d43c",

View File

@ -15,3 +15,32 @@ For code based things, transferring to and from the server is annoying. Maybe Gi
Me, for now.
# Learning to Use **Github**
## Preliminary Setup
Create a ssh key on the terminal if you don't have one:
```bash
ssh-keygen -t ed25519 -C "dane.sabo@pitt.edu"
```
Copy the contents of this key:
```bash
cat ~/.ssh/id_ed25519.pub
```
Notably, the public key is .pub. Do NOT copy the private key.
Upload this key to GitHub- go to settings>SSH and GPG keys>add the new key
Then add they key to the local SSH agent:
```bash
eval "$(ssh-agent -s)"
sshadd ~/.ssh/id_ed5519
```
## Using an existing repository
```bash
# Cloning a Repository
git clone git@github.com:danesabo/example_repo.git
#Staging and Committing Changes
git add . #adds all files
git commit -m "Commit message here!"
#Push the changes to GitHub
git push origin master #or main
```