github.com/nkprince007/lab@v0.6.2-0.20171218071646-19d68b56f403/README.md (about) 1 # git + lab = gitlab [![Build Status](https://travis-ci.org/zaquestion/lab.svg?branch=master)](https://travis-ci.org/zaquestion/lab) [![Go Report Card](https://goreportcard.com/badge/github.com/zaquestion/lab)](https://goreportcard.com/report/github.com/zaquestion/lab) [![codecov](https://codecov.io/gh/zaquestion/lab/branch/master/graph/badge.svg)](https://codecov.io/gh/zaquestion/lab) [![Join the chat at https://gitter.im/labcli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/labcli) 2 3 lab wraps git or [hub](https://github.com/github/hub) and adds additional features to make working with GitLab smoother 4 5 ``` 6 $ lab clone gitlab-com/infrastructure 7 8 # expands to: 9 $ git clone git@gitlab.com:gitlab-com/infrastructure 10 ``` 11 12 ## hub + lab = hublab?? 13 14 lab will look for hub and uses that as your git binary when available so you don't have to give up hub to use lab 15 ``` 16 $ lab version 17 git version 2.11.0 18 hub version 2.3.0-pre9 19 lab version 0.7.0 20 ``` 21 22 # Inspiration 23 24 The [hub](https://github.com/github/hub) tool made my life significantly easier and still does! lab is heavily inspired by hub and attempts to provide a similar feel. 25 26 # Installation 27 28 Dependencies 29 30 * `git` or `hub` 31 32 ### Homebrew 33 ``` 34 brew install zaquestion/tap/lab 35 ``` 36 37 ### Source 38 39 Required 40 * [Go 1.9+](https://golang.org/doc/install) 41 ``` 42 $ go get -u github.com/zaquestion/lab 43 44 $ lab version 45 git version 2.11.0 46 lab version 0.7.0 47 ``` 48 49 # Configuration 50 51 The first time you run lab it will prompt for your GitLab information. lab uses HCL for its config and looks in `~/.config/lab.hcl` and `./lab.hcl` 52 ``` 53 $ lab 54 Enter default GitLab host (default: https://gitlab.com): 55 Enter default GitLab user: zaq 56 Enter default GitLab token: 57 ``` 58 59 # Aliasing 60 61 Like hub, lab feels best when aliased as `git`. In your `.bashrc` or `.bash_profile` 62 ``` 63 alias git=lab 64 ```