RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Children Display |
---|
Table of Contents |
---|
Step 1: Sign in the CMF gerrit (https://code.rdkcentral.com/r/q/status:open) and Go to below link for repo selection,
...
Step 11: Click the link from git push success status(remote: https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/51157) to verify whether your code changes are successfully pushed or not in CMF gerrit.
If we have committed code changes repo folder in your local terminal then go for this approach.
...
Step 7: Follow the Step 11 in Steps to raise review in CMF gerrit.
If we don't have the commited code changes repo folder in your local terminal then go for this approach,
...
Step 10: Follow the Step 11 in Steps to raise review in CMF gerrit.
Step1: Forking the github repo from base repository
Login to the github account and search for the repository (For example, rdkcentral/meta-turris). Then fork the Base repository to create Head repository for the user
Once you click on fork, below screenshot will be received. Now from the 'code' button copy the URL
Step2: Clone the Head repository from github
Code Block | ||||
---|---|---|---|---|
| ||||
$ git clone <github_url>
Example,
git clone https://github.com/KaviyaKumaresan/meta-turris.git
$ cd meta-turris |
Step3: One approach is creating a temporary/topic branch for pushing the code
Code Block | ||||
---|---|---|---|---|
| ||||
$ git checkout -b <topic_branch_name>
Example,
git checkout -b demo |
Step4: Fetch all the updates into the topic branch to be in tip of Base repository
Code Block | ||||
---|---|---|---|---|
| ||||
$ git remote add upstream https://github.com/rdkcentral/meta-turris
$ git remote -v
$ git fetch
$ git pull upstream master |
Step5: Make changes in local github repository and can verify with "git status" command
Code Block | ||||
---|---|---|---|---|
| ||||
$ git status
On branch demo
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: recipes-rdkb/sysint-broadband/files/sysint-broadband.bbappend
no changes added to commit (use "git add" and/or "git commit -a") |
Step6: Add required list of files where changes are done
Code Block | ||||
---|---|---|---|---|
| ||||
$ git add <path_of_file_changes_done>
Example,
git add recipes-rdkb/sysint-broadband/sysint-broadband.bbappend |
Step7: Give a commit message
Code Block | ||||
---|---|---|---|---|
| ||||
$ git commit -sv |
Step8: Push the changes
Code Block | ||||
---|---|---|---|---|
| ||||
$ git push origin <topic_branch_name>
Example,
git push origin demo |
Need to type in Username(github handle) and Password(Github Access Token). NOTE: User need to create new Github Access token
Code Block | ||||
---|---|---|---|---|
| ||||
Example,
Username for 'https://github.com': KaviyaKumaresan
Password for 'https://KaviyaKumaresan@github.com':
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 453 bytes | 0 bytes/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
remote:
remote: Create a pull request for 'demo' on GitHub by visiting:
remote: https://github.com/KaviyaKumaresan/meta-turris/pull/new/demo
remote:
To https://github.com/Kaviyakumaresan/meta-turris.git |
1. Once after pushing the commit into Head repository, visit the URL generated,
Example,
https://github.com/KaviyaKumaresan/meta-turris/pull/new/demo
With the link, you will find the below screenshot
Click on the 'Create pull request' to generate Pull Request.
Example, PR created,