File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,22 @@ Click the **"Fork"** button on the top right of this page to create a copy of th
1111
1212### 2. Clone Your Fork Locally
1313
14- ``` bash
14+ ``` sh
1515git clone https://github.com/YOUR-USERNAME/YOUR-FORK.git
1616cd YOUR-FORK
1717```
1818
1919### 3. Add the Original Repo as a Remote
2020
21- ``` bash
21+ ``` sh
2222git remote add upstream https://github.com/OpenSourceFellows/map-dashboard.git
2323```
2424
2525### 4. Create a New Branch for Your Work
2626
2727 Never work directly on main or reuse old branches.
2828
29- ``` bash
29+ ``` sh
3030git checkout main
3131git pull upstream main
3232git checkout -b feature/your-feature-name
@@ -36,14 +36,14 @@ git checkout -b feature/your-feature-name
3636
3737Make your changes locally, and commit them:
3838
39- ``` bash
39+ ``` sh
4040git add .
4141git commit -m " Add: brief description of your change"
4242```
4343
4444### 6. Push the Branch to Your Fork
4545
46- ``` bash
46+ ``` sh
4747git push origin feature/your-feature-name
4848```
4949
@@ -59,7 +59,7 @@ git push origin feature/your-feature-name
5959
6060Before starting new work, always sync your fork:
6161
62- ``` bash
62+ ``` sh
6363git checkout main
6464git fetch upstream
6565git merge upstream/main
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Based on existing branches in the repository:
1414- ` Issue-## ` - Issue-specific work (e.g., ` Issue-10 ` , ` Issue-67 ` )
1515
1616** Creating a branch:**
17- ``` bash
17+ ``` sh
1818git checkout main
1919git pull origin main
2020git checkout -b < type> /< descriptive-name>
@@ -24,13 +24,13 @@ git checkout -b <type>/<descriptive-name>
2424
2525Push your branch:
2626
27- ``` bash
27+ ``` sh
2828git push -u origin < your-branch-name>
2929```
3030
3131Create PR using [ GitHub CLI] ( https://cli.github.com/ ) (requires installation):
3232
33- ``` bash
33+ ``` sh
3434gh pr create --title " Your PR title" --fill
3535```
3636
@@ -46,7 +46,7 @@ gh pr create --title "Your PR title" --fill
4646
4747If you want to test it locally, use [ GitHub CLI] ( https://cli.github.com/ ) :
4848
49- ``` bash
49+ ``` sh
5050gh pr checkout < PR-number>
5151```
5252
You can’t perform that action at this time.
0 commit comments