Giter Site home page Giter Site logo

git-kill's Introduction

git-kill

git-kill wrapper for fish using bass.

What does it do

Force deletes the local branch passed to the function the replaces it with the branch from remote.

function git-kill
    if not [ $argv[1] ]
        echo "Must provide at least one branch"
        return 1
    else
        for branch in $argv
            # force delete the local branch
            git branch -D $branch
            # get the remote version of the branch and push it your local copy
            # ~/D/functions (main) [1]> git remote
            # origin
            # So git push origin/branch local/$branch for every branch on origin
            # basically kills whatever you were doing that is not committed and returns you a clean copy
            for r in (git remote)
                git push $r $branch
            end
        end
    end
end

Installation

Using fisher(recommended)

fisher install idkjs/git-kill

git-kill's People

Contributors

idkjs 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.