Menu Home



Gerrit迁移后,首次访问会出现“拒绝访问”错误,解决方案如下: 清除index目录下的索引文件 重建索引 java -jar /home/gerrit2/gerrit_site/bin/gerrit.war reindex

Use Gerrit

Gerrit Workflow Set Permission(Nginx) Create password file htpasswd -c /path/gerrit.password username Add New User htpasswd -m /path/gerrit.password username Nginx Configuration server { listen *:80; server_name gerrit; allow all; deny all; auth_basic “Welcomme to Gerrit !”; auth_basic_user_file /path/gerrit.password; location / { proxy_pass; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; } } […]

Manage SSH Key

Generate SSH Key $ ssh-keygen -t rsa -C “email@host” Add Key $ ssh-add ~/.ssh/id_rsa Check Saved Keys ssh-add -l Delete All Keys ssh-add -D Start ssh agent If you get the error : “Could not open a connection to your authentication agent.” eval `ssh-agent -s`