Giter VIP home page Giter VIP logo

git-scripts's Introduction

git-scripts

A collection of scripts for use with git

Installation

Place this directory in your $PATH.

Bash

PATH=path/to/git-scripts:$PATH

Fish

set PATH path/to/git-scripts $PATH

Usage

Every script can be invoked as a git subcommand such as git dirs. Every script should respond to the -h flag with its expected parameters and options.

Scripts

git-close-current-branch

Closes the current branch if it's been merged into the mainline. Intended usage is after a pull request for the current branch has been merged into mainline and the remote branch deleted. See git close-current-branch -h for details.

git-close-merged

Closes all local branches that have been merged into HEAD (or a specified branch). This command is upstream-aware, and can be instructed to close remote branches as well. See git close-merged -h for details.

git-dirs

Prints a list of the most recently checked-out branches. See git dirs -h for details.

git-find-merge

Finds the oldest merge in the first-parent history of a given branch that a given commit is reachable from. This can be said to be the merge that introduced a commit into a given branch. See git find-merge -h for details.

git-find-tree

Finds the full path to a given filename path in a given tree-ish. This may optionally produce output that refers to the file's blob, for use with other git commands. See git find-tree -h for details.

git-fugitive

Displays a given revision or file in vim-fugitive. See git fugitive -h for details.

git-merge-pr

Merges a GitHub pull request locally using the pull request title and description. Requires jq. See git merge-pr -h for details.

Note: This does not work for private repos at this time.

git-noninteractive

Note: This script seems somewhat broken. It only works some of the time. I haven't investigated it yet.

Performs a git rebase -i --autosquash without invoking the editor. The intended usage is to automatically apply any git commit --fixup or git commit --squash commits. See git rebase-noninteractive -h for details.

git-update-branch

Updates a given branch to match its upstream. See git update-branch -h for details.

git-scripts's People

Contributors

lilyball avatar

Watchers

 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.