Giter Club home page Giter Club logo

bin's Introduction

bin

Overview

This repository contains my personal bin utility scripts from ~/bin

Table of Contents

Setup

# Change to your home directory
cd ~/

# Clone the repsitory to your home directory
git clone https://github.com/ocrosby/bin.git

# Add all of the helper directories to your path (preferably do this in .zshrc or .bashrc etc...)
export PATH=~/bin/git:~/bin/conventional:~/bin/docker:$PATH

Usage

fix commit with a scope

git add .
git commit -m "fix(myscope): my message"
git push

becomes

fix "my message" myscope

fix commit without a scope

git add .
git commit -m "fix: my message"
git push

becomes

fix "my message"

My Git Helpers

status

  • requires no arguments
  • executes git status

in

  • requires a single double quoted argument
  • executes git add .
  • executes git commit -m "<arg>"
  • executes git push

feat

  • requires a single double quoted argument
  • calls in prefixing the commit message with feat:.

fix

  • requires a single double quoted argument
  • calls in prefixing the commit message with fix:.

chore

  • requires a single double quoted argument
  • calls in prefixing the commit message with chore:.

docs

  • requires a single double quoted argument
  • calls in prefixing the commit message with docs:.

style

  • requires a single double quoted argument
  • calls in prefixing the commit message with style:.

test

  • requires a single double quoted argument
  • calls in prefixing the commit message with test:.

ci

  • requires a single double quoted argument
  • calls in prefixing the commit message with ci:.

branch

  • requires a single argument that is the name of a branch you wish to create
  • creates the new branch
  • checks out the new branch
  • pushes the upstream origin
  • calls git branch to show you where you are
  • this should leave you on the new branch

delete

  • requires a single double quoted argument that is the name of the branch you wish to delete
  • checks out main
  • calls git pull
  • forcefully deletes the specified branch
  • calls git ranch to show you where you are

Note: I need to modify delete to detect the current branch you are on so it doesn't have to be specified.

My Docker Helpers

purge-images

  • requires no arguments
  • purges images to save space locally

Note: run this regularly or your drive will fill up

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.