- Fork repo from GitHub UI
- Clone repo to the local machine
git clone clone https://github.com/viv-garot/learningGit.git
- Create and checkout branch on local machine
git checkout -b newbranch
- Add a remote pointing to the original repo you have forked on
git remote add upstream https://github.com/torgaskillmap/learningGit.git
- Do the codes changes locally
Edit file, add screenshots, ...
- Push the changes from the newbranch to the remote fork
git push origin newbranch
- Create PR on GitHub from fork/branch into org/main
- Merge the PR on GitHub
- Download changes from the original repo to the local clone repo
git pull upstream main
- Push those changes to the remote forked repo
git push origin main