How to Contribute to an Open-source project with GitHub | GitHub Fork & Pull Workflow for Beginners

Опубликовано: 31 Март 2026
на канале: Academy Omen
300
14

In this video, I will show you how to Contribute to an Open Source Project using GitHub.
In general, we contribute to open-source projects following the fork-and-pull" Git workflow
Install Git on your OS
https://git-scm.com/book/en/v2/Gettin...
1. Fork the repository to your own Github account
2. Clone the project to your machine
```
git clone https://github.com/"your-github-username"/Mumble.git
```
3. Add Upstream or the remote of the original project to your local repository
```
check remotes
git remote -v
git remote add upstream https://github.com/divanov11/Mumble.git
```
4. Make sure you update the local repository
```
Get updates
git fetch upstream
switch to master branch
git checkout master
Merge updates to local repository
git merge upstream/master
Push to github repository
git push origin master
```
5. Create a branch locally with a succinct but descriptive name
```
git checkout -b branch-name
```
6. Commit changes to the branch
```
Stage changes for commit i.e add all modified files to commit
git add .
git commit -m "added git commands for "fork-and-pull" Git workflow"
check status
git status
```
7. Following any formatting and testing guidelines specific to this repository
8. Push changes to your fork
```
git push origin branch-name
```
9. Open a PR in our repository and follow the PR template so that we can efficiently review the changes.
10. After the pull request was merged, fetch it and update the default branch of your fork


#### NB
1. You have to install Git for your operating system
https://git-scm.com/book/en/v2/Gettin...
2. Never Commit on the default branch, commit on branches then make a pull request
3. After making changes, if you want to make another change make sure you branch from the default branch because if you branch from branch-name, this will contain the changes from the 1st pull request except for the new pull request you working on requires the changes from the first pull request
```
check present branch
git branch
switch to master branch
git checkout master
create new branch for new changes
git checkout -b 2nd-test-branch
make new changes and push to your fork
```
4. After the pull request was merged, fetch the upstream and update the default branch of your fork

🙏🏽 Thanks for watching🤸🏼‍♂️
🙏🏽 LIKE, SUBSCRIBE, AND SHARE
If you have any questions, do not hesitate to comment or send us a mail. We will reply as soon as possible.
Thanks

Let's Connect
🔗 GitHub: https://github.com/itzomen
🔗 LinkedIn:   / peng-boris-akebuon-0b8ba0195  
🔗 Twitter:   / itz_omen  

Background Music produced by H3 Music
   / @h3music