qgit
v0.2.0
Published
help easy use of Git, like create repo by template
Readme
qgit
qgit is trying to automate or ease the use of Git
Installation
install Node.js first, then
npm install -g qgitUsage
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.mdConfig Command
$ qgit config
Options:
-t, --gitlab-token Private token for Gitlab
Examples:
qgit config --gitlab-token P23u92xx_dsf Configure your gitlab private tokenYou 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 commonTemplate Structure
├── docs # project docs
├── src # root of source code
├── tests # test reports
├── .gitignore # default gitignore, customise by yourself
├── README.md
└── RELEASENOTES.mdFAQ
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
