Socket
Book a DemoInstallSign in
Socket

create-git

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-git

Initalize a git repository with some helpful extras

Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
28
-22.22%
Maintainers
1
Weekly downloads
 
Created
Source

Create Git Project

NPM Version NPM Downloads js-standard-style

A generator to initialize a project with git.

Features

  • Initalize git repo
  • Create .gitignore from templates
  • Setup a remote origin
  • Create first commit

Usage

$ npm init git

# or

$ npx create-git

# or

$ npm install -g create-git
$ create-git

CLI Usage

$ create-git --help
  Usage: create-git [options] <directory>

  Options:
    -V, --version                output the version number
    --silent                     Surpress output
    --no-prompt                  Skip prompts and just use input options
    --ignore-existing            Ignore existing package.json
    -m --initial-commit-message  The initial commit message
    -o --origin                  Set the remote origin
    -t --templates               Ignor templates to load
    -h, --help                   output usage information

Programmatic Usage

const createGit = require('create-git')

;(async () => {
  await createGit({
    ignoreExisting: false,
    initialCommitMessage: '',
    remoteOrigin: '',
    ignoreTemplates: ['Node.gitignore']
  })
})()

Keywords

git

FAQs

Package last updated on 26 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts