Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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 with master if that’s the default branch in the repositories.

  • Use rebase instead of merge if you prefer a linear history:

git rebase upstream/main

  • No labels