sgit

0.3.2 • Public • Published

sgit

Simpler and shorter git syntax with questions

clone module

sgit clone rascada/sgit # git clone https://github.com/rascada/sgit.git 
 
 Cloned rascada/sgit as sgit successfully
sgit clone
 
? user / organization: (rascada)
? repo: sgit
 
 Cloned rascada/sgit as sgit successfully

prompt

sgit also can ask for all information with prompt option:

# (text in parentheses) is proposed by sgit 
sgit clone -p # --prompt 
 
? host: (github)
? user / organization: (rascada)
? repo: sgit
? folder name: (sgit)
 
 Cloned rascada/sgit as sgit successfully

or

sgit clone rascada/sgit -p
 
? host: (github)
? user / organization: (rascada)
? repo: (sgit)
? folder name: (sgit)
 
 Cloned rascada/sgit as sgit successfully

hosts

available hosts

  • github (default)
  • bitbucket
  • gitlab
sgit clone bitbucket rascada/sgit -p # or sgit clone bitbucket 
 
? host: (bitbucket)
? user / organization: (rascada)
? repo: (sgit)
? folder name: (sgit)
 
 Error: Request failed with status code: 404 # sgit repo is only on github 

Readme

Keywords

none

Package Sidebar

Install

npm i sgit

Weekly Downloads

8

Version

0.3.2

License

ISC

Last publish

Collaborators

  • rascada