Git and Gerrit have been quite confusing together sometimes. Specially, in lack of good documentation. Doesn't seem like lot of people are using them efficiently.
In this post, I am trying to explain that how to create a review in gerrit and modifying a file under one review multiple times.
Pre-requisites: You need commit-msg hook configured in your local repository.
1- scp -p -P <gerritserver>:hooks/commit-msg .git/hooks/
2- curl http:/<gerritserver>:port/tools/hooks/commit-msg
Step-1. Change a file
Step-2. Commit this file using: git commit -a -m "commit message"
Step-3. Push change to gerrit to create a new review. git push gerrit HEAD:refs/for/branchname
Step-4. Amend a file for the next change: git commit --amend <filename>
Step-5. Iterate Step-3,5
Subscribe to:
Post Comments (Atom)
Scheduling Repeating Local Notifications using Alarm Manager
Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .
-
Couple of days ago, I started using Google's code projects for Git as well. It required me to setup and use .netrc file. Here are steps...
-
Normal structure of build.gradle for an Android library looks like this: apply plugin : 'com.android.library' android { comp...
-
I've been struggling to get this working for about 2 days now. I was able to POST a request directly from sockets, but it took me a whi...
No comments:
Post a Comment