danesabo-laptop 2024-8-23:10:42:56
This commit is contained in:
parent
eaa6c0c9df
commit
5d60a0391e
5
.obsidian/workspace.json
vendored
5
.obsidian/workspace.json
vendored
@ -77,7 +77,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "horizontal",
|
"direction": "horizontal",
|
||||||
"width": 300
|
"width": 243.5
|
||||||
},
|
},
|
||||||
"right": {
|
"right": {
|
||||||
"id": "2f2905a6a7d5f153",
|
"id": "2f2905a6a7d5f153",
|
||||||
@ -152,7 +152,8 @@
|
|||||||
"daily-notes:Open today's daily note": false,
|
"daily-notes:Open today's daily note": false,
|
||||||
"templates:Insert template": false,
|
"templates:Insert template": false,
|
||||||
"command-palette:Open command palette": false,
|
"command-palette:Open command palette": false,
|
||||||
"templater-obsidian:Templater": false
|
"templater-obsidian:Templater": false,
|
||||||
|
"github-sync:Sync with Remote": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "c07c8c770459d43c",
|
"active": "c07c8c770459d43c",
|
||||||
|
|||||||
@ -15,3 +15,32 @@ For code based things, transferring to and from the server is annoying. Maybe Gi
|
|||||||
Me, for now.
|
Me, for now.
|
||||||
|
|
||||||
# Learning to Use **Github**
|
# 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
|
||||||
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user