Skip to content

Commit 48a1490

Browse files
committed
added git folder
1 parent e35ee27 commit 48a1490

30 files changed

+74
-144
lines changed
File renamed without changes.

00.Git/Git_SSH_Setup.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Git & GitHub SSH Setup Guide (Simplified)
2+
3+
A minimal, step-by-step guide for securely setting up Git with GitHub via SSH in Termux or any terminal.
4+
5+
---
6+
7+
## 1. Set Git Identity
8+
9+
```bash
10+
git config --global user.name "Your Name"
11+
git config --global user.email "you@example.com"
12+
```
13+
14+
---
15+
16+
## 2. Generate SSH Key
17+
18+
```bash
19+
ssh-keygen -t ed25519 -C "you@example.com"
20+
```
21+
22+
- Press **Enter** to accept default file location.
23+
- Leave passphrase blank (optional).
24+
25+
---
26+
27+
## 3. Start SSH Agent and Add Key
28+
29+
```bash
30+
eval "$(ssh-agent -s)"
31+
ssh-add ~/.ssh/id_ed25519
32+
```
33+
34+
---
35+
36+
## 4. Copy Public Key
37+
38+
```bash
39+
cat ~/.ssh/id_ed25519.pub
40+
```
41+
42+
📋 Copy the output.
43+
44+
---
45+
46+
## 5. Add SSH Key to GitHub
47+
48+
1. Visit: [https://github.com/settings/ssh/new](https://github.com/settings/ssh/new)
49+
2. Paste your public key.
50+
3. Name it (e.g. Termux SSH).
51+
4. Click **Add SSH Key**.
52+
53+
---
54+
55+
## 6. Test SSH Connection
56+
57+
```bash
58+
ssh -T git@github.com
59+
```
60+
61+
✅ Expected:
62+
```
63+
Hi username! You've successfully authenticated...
64+
```
65+
66+
---
67+
68+
## 7. Clone a Repo via SSH
69+
70+
```bash
71+
git clone git@github.com:username/repo-name.git
72+
```
73+
74+
📌 Done! You're now set up to use GitHub with SSH.
File renamed without changes.

0 commit comments

Comments
 (0)