gerrit中patch的验证

CR

Project要下面的权限:

	
Project Test
 	 
General
Branches
Access
Edit
Rights Inherit From: All-Projects
Reference:	
refs/heads/*
Push Merge Commit Exclusive
 Administrators
Push Annotated Tag Exclusive
 Administrators Force Push
Label Code-Review Exclusive
   ApplicationTeam
Label Verified Exclusive
   ApplicationTeam
Submit Exclusive
 ApplicationTeam

可以参考:

Git、Gerrit安装与使用,重点在于如何解决冲突:http://blog.linuxphp.org/archives/1600/


Verified

在另外一个电脑的临时文件夹下:

[shouyong@media gerrit]$ mkdir abc
[shouyong@media gerrit]$ cd abc/
[shouyong@media abc]$ git fetch http://[email protected]:8090/Test refs/changes/31/31/1 && git checkout FETCH_HEAD
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
[shouyong@media abc]$ git init
warning: templates not found /usr/local/share/git-core/templates
Initialized empty Git repository in /home/media/shouyong/tool/gerrit/abc/.git/
[shouyong@media abc]$ git init 
warning: templates not found /usr/local/share/git-core/templates
Reinitialized existing Git repository in /home/media/shouyong/tool/gerrit/abc/.git/
[shouyong@media abc]$ git fetch http://[email protected]:8090/Test refs/changes/31/31/1 && git checkout FETCH_HEAD
remote: Counting objects: 54, done
remote: Finding sources: 100% (54/54)
remote: Total 54 (delta 2), reused 54 (delta 2)
Unpacking objects: 100% (54/54), done.
From http://192.168.1.8:8090/Test
 * branch            refs/changes/31/31/1 -> FETCH_HEAD
Note: checking out 'FETCH_HEAD'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 852d001... 增加文件。
[shouyong@media abc]$ git checkout -b s
Switched to a new branch 's'
[shouyong@media abc]$ git log
commit 852d001103915fb14e0acdf43afa95c8763610f4
Author: chensy 
Date:   Fri Mar 14 17:44:57 2014 +0800

    增加文件。

commit 0b2f52b1f5d4bfa69575005465fec9b5ad277d12
Author: chensy 
Date:   Fri Mar 14 16:37:39 2014 +0800

    init one.
[shouyong@media abc]$ 



你可能感兴趣的:(Linux)