Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:github [2025/10/16 10:14] – [Github setup] will | tools:github [2025/12/12 15:33] (current) – [Authentication] martineza10 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Github setup ====== | ====== Github setup ====== | ||
| - | For '' | + | Github (source forge) is not git (local-first distributed source control management software)! See [[: |
| + | |||
| + | Github setup includes | ||
| + | - [[# | ||
| + | * use **ssh** url like '' | ||
| + | * avoid conflicting histories: <wrap important> | ||
| + | - syncing that with your files (on your computer, on rhea, on PSC, etc) | ||
| + | * <wrap tip> be sure you '' | ||
| + | - [[# | ||
| + | * <wrap tip>ssh keys recommended</ | ||
| + | * <wrap alert> '' | ||
| ===== New Repo ===== | ===== New Repo ===== | ||
| <WRAP alert> | <WRAP alert> | ||
| - | If you have an existing directory you want to put on github, **DO NOT** generate a readme | + | If you have an existing directory you want to put on github, **DO NOT** generate a readme |
| </ | </ | ||
| + | |||
| + | * {{.: | ||
| + | * {{.: | ||
| + | * {{.: | ||
| + | cd my-exsiting-data/ | ||
| + | git remote add origin git@github.com: | ||
| + | git push -u origin main</ | ||
| + | ===== Existing Repo ===== | ||
| - | {{.: | + | * Copy the ssh url of your new repository. Green ''<> |
| - | ===== ssh push ===== | + | {{:tools: |
| - | '' | + | * Clone the copied url like <code bash>git clone git@github.com/ |
| + | ===== Authentication ===== | ||
| + | For '' | ||
| + | |||
| + | when using ssh keys (recommended) use '' | ||
| + | switch from https to ssh using '' | ||
| + | |||
| + | {{.: | ||
| + | ==== ssh keys ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | Contents of '' | ||
| + | <code bash> | ||
| + | cat ~/ | ||
| + | </ | ||
| - | Contents of '' | ||
| {{: | {{: | ||
| - | If '' | + | If '' |
| + | |||
| + | <WRAP alert>'' | ||
| - | ===== Github | + | ==== https app pass ==== |
| To push to '' | To push to '' | ||