Giter Site home page Giter Site logo

git-gerrit's Introduction

Installation

git clone https://github.com/zaro0508/git-gerrit.git ~/.git-gerrit
ln -s ~/.git-gerrit/git-gerrit.sh /usr/local/bin/git-gerrit

Usage

  1. Clone a gerrit repo
  2. cd into repo
  3. git-gerrit $changeId $pastchsetId

For example:

git clone https://gerrit.googlesource.com/gerrit-ci-scripts
zaro0508@elitebook:~/work-gerrit$ git clone https://gerrit.googlesource.com/gerrit-ci-scripts
Cloning into 'gerrit-ci-scripts'...
remote: Total 1366 (delta 406), reused 1366 (delta 406)
Receiving objects: 100% (1366/1366), 677.31 KiB | 0 bytes/s, done.
Resolving deltas: 100% (406/406), done.
Checking connectivity... done.

zaro0508@elitebook:~/work-gerrit$ cd gerrit-ci-scripts/
~/work-gerrit/gerrit-ci-scripts [master|✔] 
10:09 $ git-gerrit 92297 1
remote: Counting objects: 266, done
remote: Finding sources: 100% (4/4)
remote: Total 4 (delta 0), reused 2 (delta 0)
Unpacking objects: 100% (4/4), done.
From https://gerrit.googlesource.com/gerrit-ci-scripts
 * branch            refs/changes/97/92297/1 -> FETCH_HEAD

Switched to branch 'c92297_1'
~/work-gerrit/gerrit-ci-scripts [c92297_1 L|✔] 
10:10 $ git branch
* c92297_1
  master

git-gerrit's People

Contributors

zaro0508 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.