generator-yag-git

Generator for Yeoman to init and config a project for Git

Usage no npm install needed!

<script type="module">
  import generatorYagGit from 'https://cdn.skypack.dev/generator-yag-git';
</script>

README

generator-yag-git npm version Build status Coverage status Dependency status

Yet Another Generator for Yeoman to init and config a project for Git.

  • Initializes a Git repository
  • Adds a Git remote if found in package.json
  • Adds a .gitattributes file
  • Adds a .gitignore file

Installation

Install Yeoman and generator-yag-git globally with npm:

npm install -g yo
npm install -g generator-yag-git

Then initialize and configure project for Git:

mkdir my-project
cd my-project
npm init
yo yag-git
# Initialized empty Git repository in /Users/thanos/Dev/my-project/.git/
# Added Git remote git@github.com:alefteris/my-project.git
#    create .gitattributes
#    create .gitignore

License

MIT