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

Compare with Current View Page History

« Previous Version 2 Next »

Steps to raise review in CMF gerrit(Ex:meta-cmf-raspberrypi)

Step1:  


Step2: Clone the Head repository from github

$ 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

$ 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

$ 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

$ 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

$ git add <path_of_file_changes_done>
  
  Example,
  git add recipes-rdkb/sysint-broadband/sysint-broadband.bbappend


Step7: Give a commit message

$ git commit -sv


Step8:
Push the changes

$ 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

  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




  • No labels