Giter Site home page Giter Site logo

git-multipush's Introduction

git-multipush

Gavin Beatty [email protected]

git multipush: Push a branch to multiple remotes in one command. Particularly useful for people hosting on multiple git repo providers all at once. e.g., github.com, gitorious.org and repo.or.cz.

From the manpage:

NAME
       git-multipush - push a branch to multiple remotes in one command.

SYNOPSIS
       git multipush [OPTIONS] [<remote>...] [-- GIT_OPTIONS]
       git multipush [OPTIONS] -s <remote> [...]
       git multipush [OPTIONS] --unset
       git multipush [OPTIONS] -g

DESCRIPTION
       Particularly useful for people hosting on multiple git repo providers
       all at once. e.g., github.com, gitorious.org and repo.or.cz.

OPTIONS
       -v, --verbose
           Print the git commands before executing them.

       -e, --error
           Fail immediately when any push fails. Otherwise, we fail after all
           pushes with the error code of the last failed push.

       -n, --dry-run
           Don’t run any of the git commands. Only print them, as in -v.

       -b, --branch=<branch>
           The branch to push. If none given, none are passed on to git push.
           If <branch> is given with no <remote>´s and no
           ´multipush.<branch>.remotes set, origin is used as the <remote>.

       -s, --set
           Set multipush.<branch>.remotes to a comma-separated list of the
           given <remotes>. They will be used as the list of remotes to push
           to when none are passed explicitely.

       --unset
           Unset multipush.<branch>.remotes.

       -g, --get
           Get multipush.<branch>.remotes and print each remote on its own
           line.

       --system
           Passed directly on to git config.

       --global
           Passed directly on to git config.

       --file=<file>
           Passed directly on to git config.

       -z, --null
           Only applies when -g, --get used. Print each remote with a
           null-terminator instead of a newline. Useful with xargs -0 etc.

       --version
           Print version info in the format git multipush version $version.

       <remote>...
           The list of remotes to push to. None passed to git push if none
           given.

       GIT_OPTIONS
           Options passed directly on to git push.

EXIT STATUS
       0 on success and non-zero on failure.

AUTHOR
       Gavin Beatty <[email protected]>

RESOURCES
       Website: https://github.com/gavinbeatty/git-multipush

REPORTING BUGS
       Please report all bugs and wishes to <[email protected]>

COPYING
       git-multipush Copyright (C) 2010 Gavin Beatty, <[email protected]>

       Free use of this software is granted under the terms of the GNU General
       Public License version 3, or at your option, any later version.
       (GPLv3+)

Dependencies

  • sh: in POSIX
  • sed: in POSIX
  • git: it is very much not in POSIX.

As such, git-multipush should be portable across all platforms that Git supports.

License

git multipush Copyright 2010 Gavin Beatty [email protected].

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You can find the GNU General Public License at: http://www.gnu.org/licenses/

Install

Configure and build:

make

Or configure and build with your own builddir:

make builddir=../build/git-multipush

Split configure and build into two steps:

make conf
make

Default prefix is /usr/local:

sudo make install

Select your own prefix:

make install prefix=~/.local

DESTDIR supported so you can easily make packages. An example with fakeroot:

fakeroot make install DESTDIR=~/packages/git-multipush prefix=/usr

Website

https://github.com/gavinbeatty/git-multipush

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.