This is a collection of tips to assist RISC-V members with various tasks and procedures.
Keeping a Fork Up to Date with the Main Repository
Clone your fork (if not already cloned):
git clone https://github.com/your-username/your-fork.git cd your-fork
Add the main repository as an upstream remote:
git remote add upstream https://github.com/original-owner/main-repo.git
Fetch the latest changes from the main repository:
git fetch upstream
Merge the changes into your fork's main branch:
git checkout main git merge upstream/main
Push the updated fork to GitHub:
git push origin main
Replace
main
withmaster
if that’s the default branch in the repositories.Use
rebase
instead ofmerge
if you prefer a linear history:
git rebase upstream/main