UNPKG

1.42 kBMarkdownView Raw
1# GRC - Git Remote Creation (JS)
2A simple tool to create your bitbucket and github remotes.
3
4## Install
5``` bash
6npm install grc
7
8```
9
10
11## Getting Started
12
13Here's what you need to get started:
14
15- A github and/or bitbucket account
16- personal access token (for github auth)
17- git
18
19### Instructions
20
21#### Github
22
231. Go to [github](https://github.com) and login/create account
242. Create a [token](https://github.com/settings/tokens)
25 * *Give scope **repo** for public and private repo access*
26 * *Give scope **pubilc_repo** for only public repo access*
273. Use flags -u and -t to specify Username and Token (-t shows your token)
28 * *without the -t flag you will be prompted for your password*
29 * *without the -u flag, the value from 'git config --get user.username' is used*
304. Use the --g flag to use github
31
32#### Bitbucket
33
341. Go to [bitbucket](https://bitbucket.org) and login/create account.
352. Use flags -u and -t to specify Username and Password (-t shows your token)
36 * *without the the -t flag you will be prompted for your password*
37 * *without the -u flag, the value from 'git config --get user.username' is used*
38
39###Flags
40* --g - Set host to github
41* -n - Name of repo, defaults to name of current directory
42* --p - Set repo to private
43* -t - Token for respective host
44* -u - Username for respective host, defaults to git username
45* -s - Team name if creating a team repository (bitbucket only)