ongudidan commited on
Commit
75cc9f0
·
1 Parent(s): cececac

new file: text.md

Browse files
Files changed (1) hide show
  1. text.md +83 -0
text.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ ## 🚀 Quick Copy-Paste Setup
4
+
5
+ ```powershell
6
+ cd "C:\Users\Dan Ong'udi\Docker Projects\deepsite"
7
+
8
+ git init
9
+ git checkout -b main
10
+
11
+ git remote add origin https://huggingface.co/spaces/ongudidan/deepsite-v2
12
+
13
+ git add .
14
+ git commit -m "Initial DeepSite v2 upload"
15
+
16
+ git push origin main --force
17
+ ```
18
+
19
+ 👉 When prompted:
20
+
21
+ * **Username** → `ongudidan`
22
+ * **Password** → your **Hugging Face access token** (not your Hugging Face password).
23
+
24
+ ---
25
+
26
+ ## 📖 Documentation: Connecting Local Repo to Hugging Face Space
27
+
28
+ ### 1. Navigate to Your Project Folder
29
+
30
+ Move into your project directory:
31
+
32
+ ```powershell
33
+ cd "C:\Users\Dan Ong'udi\Docker Projects\deepsite"
34
+ ```
35
+
36
+ ### 2. Initialize Git Repository
37
+
38
+ If this is a fresh project:
39
+
40
+ ```powershell
41
+ git init
42
+ git checkout -b main
43
+ ```
44
+
45
+ This creates a new Git repository and ensures you’re working on the `main` branch.
46
+
47
+ ### 3. Add Hugging Face Space as Remote
48
+
49
+ Connect your local repository to the Hugging Face Space:
50
+
51
+ ```powershell
52
+ git remote add origin https://huggingface.co/spaces/ongudidan/deepsite-v2
53
+ ```
54
+
55
+ > 🔑 Note: This uses a clean HTTPS URL (no token in the remote).
56
+
57
+ ### 4. Stage and Commit Files
58
+
59
+ Add all project files and create your first commit:
60
+
61
+ ```powershell
62
+ git add .
63
+ git commit -m "Initial DeepSite v2 upload"
64
+ ```
65
+
66
+ ### 5. Push to Hugging Face
67
+
68
+ Push your code to the Space:
69
+
70
+ ```powershell
71
+ git push origin main --force
72
+ ```
73
+
74
+ You will be prompted for credentials:
75
+
76
+ * **Username** → your Hugging Face username (`ongudidan`).
77
+ * **Password** → your Hugging Face **access token** (generated at [HF settings](https://huggingface.co/settings/tokens)).
78
+
79
+ ---
80
+
81
+ ✅ After a successful push, Hugging Face will build and deploy your Space automatically.
82
+
83
+ ---