Skip to content

Commit a92e77f

Browse files
committed
Quartz sync: Mar 22, 2025, 11:31 AM
1 parent 98b524d commit a92e77f

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

content/.obsidian/workspace.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"state": {
1414
"type": "markdown",
1515
"state": {
16-
"file": "index.md",
17-
"mode": "source",
16+
"file": "06-Git-Remote.md",
17+
"mode": "preview",
1818
"source": true
1919
},
2020
"icon": "lucide-file",
21-
"title": "index"
21+
"title": "06-Git-Remote"
2222
}
2323
}
2424
]
@@ -170,13 +170,13 @@
170170
},
171171
"active": "d5a4af797a612641",
172172
"lastOpenFiles": [
173+
"index.md",
173174
"06-Git-Remote.md",
174175
"05-Stash.md",
175176
"04-Resolving Merge Conflicts.md",
176177
"03-Merge-Conflicts.md",
177178
"02-Merge.md",
178179
"01-Branching.md",
179-
"index.md",
180180
"attachments/Pasted image 20250322110505.png",
181181
"attachments/Pasted image 20250322084920.png",
182182
"attachments/Pasted image 20250322084846.png",

content/06-Git-Remote.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
1. Go to your git hub account and create a new **empty repository**
22
>[!warning] When creating the repository, make sure that you **don't create the README**, otherwise the repository starts with an initial commit, which may conflict with your local git commit history.
33
4-
54
![[Pasted image 20250322110505.png|800]]<br/>
5+
66
2. Get your remote Link(Either http or ssh)
7+
78
![[Pasted image 20250322084846.png|800]]<br/>
8-
3. Go to your local repository, and the remote link to the repo
9+
10+
4. Go to your local repository, and the remote link to the repository
911
```bash
1012
git remote add origin <link>
1113
```
14+
1215
4. Fetch the origin
1316
```bash
1417
git fetch origin
1518
```
19+
1620
5. Push the changes to your remote repository, since in you don't have upstream branch already setup, we need set it in the command.
1721
```bash
1822
git push --set-upstream origin main
1923
```
24+
2025
6. Observe your remote repository, and observe whether the commit history matches your local `git log`

0 commit comments

Comments
 (0)