Skip to content

Commit e5803a7

Browse files
authored
Update README.md
1 parent b7f5d7b commit e5803a7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,39 @@ A python code-editor only to make console application.
2626
3. Link the `run` button
2727
4. Open the console to see the result
2828

29+
### Cloning Your Fork
30+
31+
To clone your forked repository, use the following command in your terminal:
32+
33+
```bash
34+
git clone https://github.com/Harshit2012/SnakeCodeEditor.git
35+
cd SnakeCodeEditor
36+
```
37+
38+
## Syncing Your Fork
39+
To sync your fork with the original repository, you’ll need to add the original repository as an upstream remote:
40+
```bash
41+
git remote add upstream https://github.com/Harshit2012/SnakeCodeEditor.git
42+
```
43+
44+
**Fetch the branches and their respective commits from the upstream repository:**
45+
46+
```bash
47+
git fetch upstream
48+
```
49+
50+
**Check out your fork’s local default branch - usually main:**
51+
52+
```bash
53+
git checkout main
54+
```
55+
56+
**Merge the changes from the upstream default branch - usually main:**
57+
58+
```bash
59+
git merge upstream/main
60+
```
61+
2962
## Preview
3063
![SnakeEdit](https://github.com/Harshit2012/SnakeCodeEditor/assets/105143145/944e8a6b-ff6e-4588-b2b4-e90ad3c6e25f)
3164

0 commit comments

Comments
 (0)