You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/posts/pull_request_tutorial_for_beginners.md
+1-22Lines changed: 1 addition & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -93,32 +93,11 @@ git checkout main
93
93
git pull origin main
94
94
git branch -d feature-branch-name
95
95
```
96
-
```javascript
97
-
98
-
useEffect(() => {
99
-
constfetchDocs=async () => {
100
-
try {
101
-
constresponse=awaitfetch('/posts/index.json');
102
-
if (!response.ok) {
103
-
thrownewError('Network response was not ok');
104
-
}
105
-
constdata=awaitresponse.json();
106
-
setDocs(data);
107
-
} catch (error) {
108
-
setError(error.message);
109
-
} finally {
110
-
setLoading(false);
111
-
}
112
-
};
113
-
114
-
fetchDocs();
115
-
}, []);
116
96
117
-
```
118
97
You may also delete the branch from your fork on GitHub.
119
98
120
99
Congratulations! You've successfully created and merged a pull request. This process helps maintain code quality and encourages collaboration among developers.
121
100
122
101
This tutorial covers the basics of creating a pull request and includes best practices to help beginners understand the process.
123
102
124
-
> Written by **Sakib Ahmed** | [GitHub](https://github.com/devvsakib)
103
+
> Written by **Sakib Ahmed** | [GitHub](https://github.com/devvsakib)
0 commit comments