-
Notifications
You must be signed in to change notification settings - Fork 1
workspace setup
David Zhang edited this page Apr 12, 2021
·
4 revisions
Welcome to the XRT_RPU wiki!
- Create a fork of https://github.com/Xilinx/XRT_RPU.git using XRT GitHub page. This fork will be called origin in git parlance. upstream refers to the location where you forked from. It will be something like "https://github.com/<username>/XRT_RPU.git"
- Clone the forked repository to local server : git clone https://github.com/<username>/XRT_RPU.git
- Configure your git remote : https://help.github.com/articles/configuring-a-remote-for-a-fork/
- Here is an example
$ git remote -v
origin https://[email protected]/user/XRT_RPU.git (fetch)
origin https://[email protected]/user/XRT_RPU.git (push)
upstream https://[email protected]/Xilinx/XRT_RPU.git (fetch)
upstream https://[email protected]/Xilinx/XRT_RPU.git (push)
- Make changes; test changes; commit to your local repository
- <Optional> : Squash your change history if you wish by rebase your changes:
git rebase -i origin/master
- push the changes to your fork on GitHub into the master branch.
git push origin master
- Go back to GitHub page and create Pull Request. This will show up on upstream at https://github.com/Xilinx/XRT_RPU.git
- Admins review the change and commit them to upstream
- Sync your origin with latest changes in upstream for master branch
git pull --rebase upstream master
git push origin master