Coder Social home page Coder Social logo

git-plugins's Introduction

Git Plugins Build Status

A community collection of Git plugins. Browse the scripts to see what's included.

Example workflow

A number of the plugins included in this project make the updating/branching/submitting process easier. As an example use case, if you are doing something like the GitHub Flow, your workflow for a feature might look something like this:

git fetch origin
git checkout -b feature-branch --no-track origin/master

# make some changes, add some files

git add -A
git commit -m "fixed stuff"

git push -u origin feature-branch

# open your repository on github.com, and click the button to make a new pull request

That is so much typing! Using these plugins, this can all be simplified to:

git f feature-branch

# make some changes, add some files

git ca -m "fixed stuff"
git pr

So much easier! โšก

Setup

git clone [email protected]:afeld/git-plugins.git

Then add the following to your ~/.bash_profile (or ~/.zshrc, or whatever profile file you use):

export PATH=path/to/git-plugins/bin:$PATH

Aliases

The plugin names intentionally favor descriptiveness over terseness, but you should make shortcuts for yourself that make sense for you. You can see some examples in the [alias] section of afeld/dotfiles. To add a new shortcut:

git config --global alias.SHORT LONG

# you can then use
git SHORT

e.g.

git config --global alias.lg pretty-log

# enables
git lg

To use the workflow described above, run the following to set up the aliases:

git config --global alias.ca commit-all
git config --global alias.f create-feature-branch
git config --global alias.pr create-pull-request

See Also

git-plugins's People

Contributors

afeld avatar johndbr 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.