Giter Club home page Giter Club logo

gitscripts's Introduction

gitscripts

These are scripts that I use to streamline my github workflow. These scripts assume two things:

  1. You're working off of a fork of a master repo and you've set the master repo as a remote called 'upstream' (using a command like git remote add upstream https://github.com/willfulbard/gitscripts.git).
  2. You have a pull request template located at repo/.github/PULL_REQUEST_TEMPLATE.md
  3. You have your $EDITOR variable set in your shell to your preferred text editor

Requirements

git and github's command line interface hub. You can find installation instructions for hub here:

https://github.com/github/hub

(tl;dr - just run brew install hub)

Installation

Add the folder to your $PATH. To test you can run gitcommands or gitscripts to see the help for the scripts.

Usage

  1. In your repository on the master branch, use gitstart mybranchname to start new work on a branch by that name.
  2. Once you've finished and completed some work you'd like to push up, use the gitprep command
  3. If the rebasing in gitprep worked, then your ready to create a pull request using gitpullreq
  4. At this point, a frew different things could happen:
    • If you need to amend your pull request, commit your changes in the branch and run gitprep to re-push your changes to your fork.
    • If you want to start new work, then git checkout master and start at number 1
  5. Once your pull request has been merged, checkout the branch associated with your pull request and run gitfinish. WARNING: This will delete the branch both locally and remotely.

Have fun!

##TODO

gitscripts's People

Contributors

willfulbard avatar

Stargazers

Roman avatar

Watchers

 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.