Git Product home page Git Product logo

gitstart's Introduction

Gitstart

More details about Gitstart.

Overview

Gitstart creates, adds, and pushes with one line.

This script automates creating a git repo. The script will:

  • Create .gitignore if you provide a language.
  • Create a license.txt depends on your choice.
  • Create a new repo at GitHub.com.
  • Create a README.md file with the repo name.
  • Add README.md and commit with a message.
  • Add the remote and push the file.

The script reads your GitHub username from ~/.config/gh/hosts.yml and uses the directory name as a GitHub repo name.

Requirements

  • UNIX-lie (Tested on Ubuntu and MacOS.)
  • GitHub CLI.

Installation

Linux/macOS using Awesome

After installing Awesome package manager:

awesome install shinokada/gitstart

macOS using Homebrew

If you have Homebrew on your macOS, your can run:

brew tap shinokada/gitstart && brew install gitstart

Usage

  • Login github using gh auth login.
  • Choose SSH or HTTPS for the default git protocol when you login.
# define a dir path
gitstart repo-name
# in a current dir
cd new_repo
gitstart
  • Select a license.
Select a license:
1) MIT: I want it simple and permissive.
2) Apache License 2.0: I need to work in a community.
3) GNU GPLv3: I care about sharing improvements.
4) None
5) Quit
Your lisence: 1
MIT
  • Select a visibility.
>>> You are logged in. Creating your newtest in remote.
? Visibility  [Use arrows to move, type to filter]
> Public
  Private
  Internal
  • Yes to add an origin git remote to your local repo.
? This will add an "origin" git remote to your local repository. Continue? Yes

About Licensing

Read more about Licensing.

Author

Shinichi Okada

License

Copyright (c) 2021 Shinichi Okada (@shinokada) This software is released under the MIT License, see LICENSE.

gitstart's People

Contributors

shinokada avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.