Hi Guisepee,
Thanks for your contribution. I am also newbie here but I think I can answer your questions since I have committed and pushed my changes successfully:
1. I don’t think that you need to create refs/for/<branch>, the easy way is pull the branch you want to change, for instance, master. Do your change, then commit the code locally then push into refs/for/master.
Example: I need to fix a bug in master branch, here is the flow:
- git checkout master //switch to master branch
- git pull
- git checkout -b bugA //create a new local branch based on master, optional, in case you need to keep the change locally
(coding)
- git add a.java //add the code change
- git commit //you need to insert the commit message after this command
- git push refs/for/master
2. Go to
gerrit-review.googlesource.com, the change would be here.
If it still does not work. Please make sure that you follow the steps such as creating the change id generator for git in your local pc or sign the google contribution rule on gerrit-review.
Hope it helps.
Hoa
Vào 23:32:53 UTC+7 Thứ Sáu, ngày 16 tháng 11 năm 2018, Giuseppe Salvatore đã viết: