0.2.0 • Published 9 years ago
qgit v0.2.0
qgit
qgit is trying to automate or ease the use of Git
Installation
install Node.js first, then
npm install -g qgit
Usage
Open your shell or command prompt, simply type
$ qgit
Commands:
create Create Git repo by template
config Config qgit
Options:
--version Show version number
for more information visit
http://161.91.4.86:9001/common/qgit/blob/master/README.md
Config Command
$ qgit config
Options:
-t, --gitlab-token Private token for Gitlab
Examples:
qgit config --gitlab-token P23u92xx_dsf Configure your gitlab private token
You must config private token before any communication to Gitlab
Create Command
# help
$ qgit create
Options:
-n, --name Name for new project [required]
-g, --gitlab Create new repo on GitLab, or create repo locally without
specifying this option [boolean]
-p, --path Create repo under which namespace (group or yours). For group,
you must have permission for it
Examples:
qgit create -n xyz Create a new repo named xyz
# create a new repo named xyz under your namespace
$ qgit create -n xyz -g
# create a new repo named xyz under common group
$ qgit create -n xyz -g -p common
Template Structure
├── docs # project docs
├── src # root of source code
├── tests # test reports
├── .gitignore # default gitignore, customise by yourself
├── README.md
└── RELEASENOTES.md
FAQ
Where to find your private token on GitLab
Go to Gitlab -> Profile -> Account
Todo
could create repo on GitLab and link that remote with this new created one- add and enable pre-installed git hooks