diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index fa5ee151f..d78976c06 100755 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -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", diff --git a/Learning How to Use Github.md b/Learning How to Use Github.md index 2c431b077..24d0d9f4f 100755 --- a/Learning How to Use Github.md +++ b/Learning How to Use Github.md @@ -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 +```